3v4l.org

run code in 300+ PHP versions simultaneously
<?php $apples = 10; for ($i = 0; $i < 10; ++$i) { echo 'I have ' . $apples-- . " apples. I just ate one.\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
I have 10 apples. I just ate one. I have 9 apples. I just ate one. I have 8 apples. I just ate one. I have 7 apples. I just ate one. I have 6 apples. I just ate one. I have 5 apples. I just ate one. I have 4 apples. I just ate one. I have 3 apples. I just ate one. I have 2 apples. I just ate one. I have 1 apples. I just ate one.

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