3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 4; @$a[5] += $amount; print_r($a); $b[6] = ($b[6] ?? 0) + $amount; print_r($b); @$c->x[5] += $amount; print_r($c); $d[3] = (isset($d[3]) ? $d[3] : 0) + $amount; print_r($d);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [5] => 4 ) Array ( [6] => 4 ) Fatal error: Uncaught Error: Attempt to modify property "x" on null in /in/tNV3s:7 Stack trace: #0 {main} thrown in /in/tNV3s on line 7
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:
55.23 ms | 401 KiB | 8 Q