3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = -1 * "99999999999999.999999"; echo "Amount ", var_dump($amount), PHP_EOL; $balance = "0.00"; echo "Balance ", var_dump($balance), PHP_EOL; $amountRounded = round($amount, 2); echo "Amount rounded ", var_dump($amountRounded), PHP_EOL; $newBalance = $balance + $amountRounded; echo "NB ", var_dump($newBalance), PHP_EOL; var_dump($newBalance >= -0.005); var_dump($amount > 0);
Output for git.master, git.master_jit, rfc.property-hooks
Amount float(-100000000000000) Balance string(4) "0.00" Amount rounded float(-100000000000000) NB float(-100000000000000) bool(false) bool(false)

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.2 ms | 401 KiB | 8 Q