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'; myTest(); print '<br>'; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
/n0<br>/n1<br>/n2<br>/n3<br>/n4<br>/n5<br>/n6<br>/n7<br>/n8<br>/n9<br>/n10<br>/n11<br>/n12<br>/n13<br>/n14<br>/n15<br>/n16<br>/n17<br>/n18<br>/n19<br>/n20<br>/n21<br>/n22<br>/n23<br>/n24<br>/n25<br>/n26<br>/n27<br>/n28<br>/n29<br>/n30<br>/n31<br>/n32<br>/n33<br>/n34<br>/n35<br>/n36<br>/n37<br>/n38<br>/n39<br>/n40<br>

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