3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 1.02; $i += 0.17) { $a[$i] = $i; } print_r($a); echo count($a);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 0.17 to int loses precision in /in/pbgJb on line 3 Deprecated: Implicit conversion from float 0.34 to int loses precision in /in/pbgJb on line 3 Deprecated: Implicit conversion from float 0.51 to int loses precision in /in/pbgJb on line 3 Deprecated: Implicit conversion from float 0.68 to int loses precision in /in/pbgJb on line 3 Deprecated: Implicit conversion from float 0.8500000000000001 to int loses precision in /in/pbgJb on line 3 Array ( [0] => 0.85 ) 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:
45.14 ms | 402 KiB | 8 Q