3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test { } $t = new test(); $t->foo = 'bar'; var_dump(aggregate_properties($t, 'test')); var_dump($t);
based on WTje4
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function aggregate_properties() in /in/R1OUX:10 Stack trace: #0 {main} thrown in /in/R1OUX on line 10
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught Error: Call to undefined function aggregate_properties() in /in/R1OUX:10 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
Fatal error: Call to undefined function aggregate_properties() in /in/R1OUX on line 10
Process exited with code 255.
Output for 4.3.0 - 4.4.9
NULL object(test)(1) { ["foo"]=> string(3) "bar" }