3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new \stdClass(); $o->foo = 'bar'; var_dump($o); $a = ['foo' => 'Hello']; var_dup($a);
based on ZRqYY
Output for 7.0.0 - 7.3.1
object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } Fatal error: Uncaught Error: Call to undefined function var_dup() in /in/nPuQi:6 Stack trace: #0 {main} thrown in /in/nPuQi on line 6
Process exited with code 255.
Output for hhvm-3.15.4
object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } Fatal error: Uncaught Error: Call to undefined function var_dup() in /in/nPuQi:6 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
object(stdClass)#1 (1) { ["foo"]=> string(3) "bar" } Fatal error: Call to undefined function var_dup() in /in/nPuQi on line 6
Process exited with code 255.