3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 12345; $digits = floor(log($int, 10)); for ($i = $digits; $i >= 0; $i--) { echo "The {$i}th digit is: " . (floor($int / pow(10, $i)) % 10) . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
The 4th digit is: 1 The 3th digit is: 2 The 2th digit is: 3 The 1th digit is: 4 The 0th digit is: 5

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:
40.1 ms | 1415 KiB | 4 Q