3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pet1 = 'dog'; $pet2 = 'cat'; $arrayvalue = array( array('brown', 'white'), array($pet1, $pet2) ); // echo both: for ($i=0; $i<2; $i++) echo $arrayvalue[0][$i] . ' ' . $arrayvalue[1][$i] . '<br>'; echo "\n"; //echo just the first part: echo $arrayvalue[0][0] . ' ' . $arrayvalue[1][0]; echo "\n"; //echo just the second part: echo $arrayvalue[0][1] . ' ' . $arrayvalue[1][1];
Output for git.master, git.master_jit, rfc.property-hooks
brown dog<br>white cat<br> brown dog white cat

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
41.63 ms | 401 KiB | 8 Q