3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "A-MTP-"; $i = 1; $j=1; $ss=1; $s=1; $ch="ch".$ss ; $ch= "$".$ch; $$ch =array(); while ($i < 4) { while($j < 13) { $sh = $a."-".$i."-".$j ; array_push($sh,$$ch[$s]); if($j % 4 == 0) { $s++; } $j++; } $i++; } //print_r($$ch1);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 1 in /in/vvWcr on line 16 Fatal error: Uncaught TypeError: array_push(): Argument #1 ($array) must be of type array, string given in /in/vvWcr:16 Stack trace: #0 /in/vvWcr(16): array_push('A-MTP--1-1', NULL) #1 {main} thrown in /in/vvWcr on line 16
Process exited with code 255.

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:
42.35 ms | 401 KiB | 8 Q