3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class DB { function escapeSimple($item) { return $item; } } $db = new StdClass(); $db->db = new DB(); $values - array( 'one', 'two', 'three', ); $values = array_map(array($db->db, 'escapeSimple'),$values);
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: values in /in/YM9ue on line 15 Fatal error: Uncaught Error: Unsupported operand types in /in/YM9ue:15 Stack trace: #0 {main} thrown in /in/YM9ue on line 15
Process exited with code 255.
Output for 5.1.0 - 5.6.28
Notice: Undefined variable: values in /in/YM9ue on line 18 Fatal error: Unsupported operand types in /in/YM9ue on line 18
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: values in /in/YM9ue on line 14 Fatal error: Unsupported operand types in /in/YM9ue on line 18
Process exited with code 255.
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: values in /in/YM9ue on line 14 Fatal error: Unsupported operand types in /in/YM9ue on line 18
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: values in /in/YM9ue on line 14 Fatal error: Unsupported operand types in /in/YM9ue on line 18