3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array ( 'a' => '1', 'b' => '2', 'test' => 'Replace This' ); array_walk_recursive ( $arr, 'bad_example' ); pre ( $arr );
Output for 7.0.0 - 7.1.0
Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'bad_example' not found or invalid function name in /in/tdRoT on line 9 Fatal error: Uncaught Error: Call to undefined function pre() in /in/tdRoT:10 Stack trace: #0 {main} thrown in /in/tdRoT on line 10
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'bad_example' not found or invalid function name in /in/tdRoT on line 9 Fatal error: Call to undefined function pre() in /in/tdRoT on line 10
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: array_walk_recursive(): Unable to call bad_example() - function does not exist in /in/tdRoT on line 9 Fatal error: Call to undefined function pre() in /in/tdRoT on line 10
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: array_walk_recursive() [<a href='function.array-walk-recursive'>function.array-walk-recursive</a>]: Unable to call bad_example() - function does not exist in <b>/in/tdRoT</b> on line <b>9</b><br /> <br /> <b>Fatal error</b>: Call to undefined function pre() in <b>/in/tdRoT</b> on line <b>10</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: array_walk_recursive() in <b>/in/tdRoT</b> on line <b>9</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: array_walk_recursive() in <b>/in/tdRoT</b> on line <b>9</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: array_walk_recursive() in <b>/in/tdRoT</b> on line <b>9</b><br />