3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { } function a($input) { $input->bar = 'a'; } function b($input) { $input->bar = 'b'; } $stuff = new Input(); a($stuff); b($stuff); var_dump($stuff);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Input' not found in /in/eQ0O9:17 Stack trace: #0 {main} thrown in /in/eQ0O9 on line 17
Process exited with code 255.
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught Error: Class undefined: Input in /in/eQ0O9:17 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Class undefined: Input in /in/eQ0O9 on line 17
Process exited with code 255.
Output for 5.3.0 - 5.6.30
Fatal error: Class 'Input' not found in /in/eQ0O9 on line 17
Process exited with code 255.