3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Es soll eine Ausgabe von 0-2 produziert werden und bewiesen werden, dass die Zählung bei 0 beginnt. for($i = 0; $i < 3; ++$i) { echo 'Counter ist auf: '.$i."\n"; assert($i == 0); }
Output for git.master, git.master_jit, rfc.property-hooks
Counter ist auf: 0 Counter ist auf: 1 Fatal error: Uncaught AssertionError: assert($i == 0) in /in/FDYrp:5 Stack trace: #0 /in/FDYrp(5): assert(false, 'assert($i == 0)') #1 {main} thrown in /in/FDYrp on line 5
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:
52.41 ms | 401 KiB | 8 Q