3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode(json_encode(array(500019.68325692)), true); $a2 = json_decode(json_encode(500019.68325692), true); $b = array(500019.68325692); $b2 = 500019.68325692; print ($b2[0] == 500019.68325692 ? 1 : 0); print ($a2[0] == 500019.68325692 ? 1 : 0);
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type float in /in/kqCKr on line 8 0 Warning: Trying to access array offset on value of type float in /in/kqCKr on line 9 0
Output for rfc.property-hooks
Warning: Trying to access array offset on float in /in/kqCKr on line 8 0 Warning: Trying to access array offset on float in /in/kqCKr on line 9 0

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:
58.44 ms | 401 KiB | 8 Q