3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ "5'", "5' 0", "5' 0 1/2", "5' 1", "5' 1 1/2", "5' 2", "5' 2 1/2", "7' 4", ]; foreach ($tests as $test) { sscanf($test, '%d\' %d %d/%d"', $feet, $inches, $numerator, $denominator); printf("%.1f\n", ($feet * 12) + $inches + ($denominator ? $numerator / $denominator : 0)); }
Output for git.master, git.master_jit, rfc.property-hooks
60.0 60.0 60.5 61.5 61.5 62.5 62.5 88.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:
55.96 ms | 405 KiB | 5 Q