3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); class A { } $a = new A( new B() );
Output for 7.1.0
Fatal error: Uncaught Error: Class 'B' not found in /in/G21hD:7 Stack trace: #0 {main} thrown in /in/G21hD on line 7
Process exited with code 255.
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.0.14
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Class undefined: B in /in/G21hD on line 7
Process exited with code 255.