3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; $a == new ArrayObject; $a == new ArrayObject; $a == new SplArray;
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SplArray' not found in /in/PBs1D:7 Stack trace: #0 {main} thrown in /in/PBs1D on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.2.0 - 5.3.10, 5.3.18 - 5.4.0, 5.4.8 - 5.6.28
Fatal error: Class 'SplArray' not found in /in/PBs1D on line 7
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.3.11 - 5.3.17, 5.4.1 - 5.4.7
Notice: Object of class stdClass could not be converted to int in /in/PBs1D on line 5 Notice: Object of class ArrayObject could not be converted to int in /in/PBs1D on line 5 Notice: Object of class stdClass could not be converted to int in /in/PBs1D on line 6 Notice: Object of class ArrayObject could not be converted to int in /in/PBs1D on line 6 Fatal error: Class 'SplArray' not found in /in/PBs1D on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/PBs1D on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/PBs1D on line 5