3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new class{ }; $abc = function() use ($a){ print_r(gettype($a)); }; $abc();
based on LPUIS
Output for 7.0.28 - 7.3.0rc3
object
Output for 5.6.38
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/seUBP on line 3
Process exited with code 255.