3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php #$a = new stdClass; var_dump(new SplStack == new ArrayObject);
Output for 5.3.0 - 5.3.10, 5.3.18 - 5.4.0, 5.4.8 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false)
Output for 5.3.11 - 5.3.17, 5.4.1 - 5.4.7
Notice: Object of class SplStack could not be converted to int in /in/FkdhK on line 5 Notice: Object of class ArrayObject could not be converted to int in /in/FkdhK on line 5 bool(true)
Output for 5.0.0 - 5.2.17
Fatal error: Class 'SplStack' not found in /in/FkdhK on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: splstack in /in/FkdhK on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: splstack in /in/FkdhK on line 5