3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Baz; use ArrayObject as Stuff; $s = eval('new Stuff();'); var_dump($s);
Output for 7.0.0 - 7.1.7, 7.2.0
Fatal error: Uncaught Error: Class 'Stuff' not found in /in/R75cS(6) : eval()'d code:1 Stack trace: #0 /in/R75cS(6): eval() #1 {main} thrown in /in/R75cS(6) : eval()'d code on line 1
Process exited with code 255.
Output for 7.1.10

Process exited with code 137.
Output for 5.3.20 - 5.6.28
Fatal error: Class 'Stuff' not found in /in/R75cS(6) : eval()'d code on line 1
Process exited with code 255.