3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0][0] = "a"; $a[0][1] = "b"; $a[1][0] = "y"; $a[1][1] = "z"; foreach ($a as $v1) { foreach ($v1 as $v2) { echo "$v2\n"; echo "$a\n"; } }
Output for git.master, git.master_jit, rfc.property-hooks
a Warning: Array to string conversion in /in/JusRb on line 12 Array b Warning: Array to string conversion in /in/JusRb on line 12 Array y Warning: Array to string conversion in /in/JusRb on line 12 Array z Warning: Array to string conversion in /in/JusRb on line 12 Array

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:
47.68 ms | 402 KiB | 8 Q