3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = -60.0; $sum = array_sum([-2.20, -7.50, -7.70, -5.20, -5.00, -2.50, -5.00, -5.00, -7.50, -7.90, -4.50]); var_dump($sum); var_dump(number_format($sum, 22)); $diff = $total - $sum; var_dump($diff);
Output for git.master, git.master_jit, rfc.property-hooks
float(-59.99999999999999) string(26) "-59.9999999999999928945726" float(-7.105427357601002E-15)

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:
29.84 ms | 405 KiB | 5 Q