3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $object = new stdClass(); $array = array(); function process_array(array $param) { // Do nothing; } process_array($array); process_array($object);
based on E0XQ0
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Argument 1 passed to process_array() must be of the type array, object given, called in /in/4Ymt2 on line 11 and defined in /in/4Ymt2:6 Stack trace: #0 /in/4Ymt2(11): process_array(Object(stdClass)) #1 {main} thrown in /in/4Ymt2 on line 6
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Catchable fatal error: Argument 1 passed to process_array() must be of the type array, object given, called in /in/4Ymt2 on line 11 and defined in /in/4Ymt2 on line 6
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Catchable fatal error: Argument 1 passed to process_array() must be an array, object given, called in /in/4Ymt2 on line 11 and defined in /in/4Ymt2 on line 6
Process exited with code 255.