3v4l.org

run code in 300+ PHP versions simultaneously
<?php $precoBase = (float)71612.54; $sumLotes= array_sum(array((float)4568.20,(float)26370.24,(float)13986.00,(float)1745.60,(float)18295.00,(float)6647.50)); var_dump($precoBase,$sumLotes); echo PHP.EOL; if ($precoBase === $sumLotes) { // Comparing value and data type. echo 'OK'; }else{ echo 'LOLPHP - NOK' . PHP_EOL; var_dump($precoBase,$sumLotes); }
Output for git.master, git.master_jit, rfc.property-hooks
float(71612.54) float(71612.54000000001) Fatal error: Uncaught Error: Undefined constant "PHP" in /in/uXNvl:7 Stack trace: #0 {main} thrown in /in/uXNvl on line 7
Process exited with code 255.

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