3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myTest() { static $x = 0; echo $x; $x++; } For ($i=0;$i<=40;$i++){ print '/n/r'; myTest(); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
/n/r0/n/r1/n/r2/n/r3/n/r4/n/r5/n/r6/n/r7/n/r8/n/r9/n/r10/n/r11/n/r12/n/r13/n/r14/n/r15/n/r16/n/r17/n/r18/n/r19/n/r20/n/r21/n/r22/n/r23/n/r24/n/r25/n/r26/n/r27/n/r28/n/r29/n/r30/n/r31/n/r32/n/r33/n/r34/n/r35/n/r36/n/r37/n/r38/n/r39/n/r40

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.94 ms | 401 KiB | 8 Q