3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class blah_blah extends blah { function say_foo() { echo $this->foo; } } class blah { var $foo = ''; function __construct( $foo ) { $this->foo = $foo; } } $hey = new blah_blah( "omg" ); $hey->say_foo(); // omg
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
omg
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/t2A6d on line 10 omg
Output for 5.1.0
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/t2A6d on line 10 Fatal error: fatal flex scanner internal error--end of buffer missed in /in/t2A6d on line 18
Process exited with code 255.
Output for 4.3.0 - 4.4.9