3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdclass(); $b = new class{}; $c = new ArrayObject(); $d = (object)[]; echo gettype($a); echo gettype($b); echo gettype($c); echo gettype($d); //=== $b=== $c === $d?"tôi là ai": "em là ai";
based on VqfOI
Output for hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0beta1
objectobjectobjectobject
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/I13Cv on line 4
Process exited with code 255.