| 
									
										
										
										
											2016-10-11 23:45:15 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $obj = new TestClass(); | 
					
						
							|  |  |  | $obj->testMethod(); | 
					
						
							|  |  |  | echo $obj->testProperty; | 
					
						
							|  |  |  | TestClass::staticTestMethod(); | 
					
						
							|  |  |  | echo TestClass::$staticTestProperty; | 
					
						
							|  |  |  | echo TestClass::TEST_CLASS_CONST; | 
					
						
							|  |  |  | test_function(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $var = 123; | 
					
						
							|  |  |  | echo $var; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-19 10:31:32 +00:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Aute duis elit reprehenderit tempor cillum proident anim laborum eu laboris reprehenderit ea incididunt. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * @param TestClass $param Adipisicing non non cillum sint incididunt cillum enim mollit. | 
					
						
							|  |  |  |  * @return TestClass | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2016-10-11 23:45:15 +00:00
										 |  |  | function whatever(TestClass $param): TestClass { | 
					
						
							|  |  |  |     echo $param; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $fn = function() use ($var) { | 
					
						
							|  |  |  |     echo $var; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | echo TEST_CONST; | 
					
						
							| 
									
										
										
										
											2016-10-26 09:47:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | use function test_function; | 
					
						
							| 
									
										
										
										
											2016-10-26 18:56:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | if ($abc instanceof TestInterface) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2016-11-18 14:22:24 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Nested expression
 | 
					
						
							|  |  |  | $obj->testProperty->testMethod(); | 
					
						
							|  |  |  | TestClass::$staticTestProperty[123]->testProperty; | 
					
						
							| 
									
										
										
										
											2016-12-16 00:40:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | $child = new ChildClass; | 
					
						
							|  |  |  | echo $child->testMethod(); |