3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 0.1; while ( $val < 2 ) { printf("%0.19f => %d\n", $val, intval($val)); $val = $val + 0.1; }
Output for git.master_jit, git.master, rfc.property-hooks
0.1000000000000000056 => 0 0.2000000000000000111 => 0 0.3000000000000000444 => 0 0.4000000000000000222 => 0 0.5000000000000000000 => 0 0.5999999999999999778 => 0 0.6999999999999999556 => 0 0.7999999999999999334 => 0 0.8999999999999999112 => 0 0.9999999999999998890 => 0 1.0999999999999998668 => 1 1.1999999999999999556 => 1 1.3000000000000000444 => 1 1.4000000000000001332 => 1 1.5000000000000002220 => 1 1.6000000000000003109 => 1 1.7000000000000003997 => 1 1.8000000000000004885 => 1 1.9000000000000005773 => 1

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