3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(); $arr[] = array(1 => array(2 => 2, 3 => array(4 => 4, 5 => 5)), 6 => 6); function showArray(&$arr) { echo('<pre>'.print_r($arr,true).'</pre><br>'); } array_walk_recursive($arr, 'showArray');
Output for 5.0.1 - 7.1.0
<pre>2</pre><br><pre>4</pre><br><pre>5</pre><br><pre>6</pre><br>
Output for 5.0.0
<pre>2</pre><br><pre>4</pre><br><pre>5</pre><br>
Process exited with code 139.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: array_walk_recursive() in <b>/in/5OtYT</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/5OtYT</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/5OtYT</b> on line <b>9</b><br />