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,$numLotes); 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
Warning: Undefined variable $numLotes in /in/LYH6U on line 6 float(71612.54) NULL Fatal error: Uncaught Error: Undefined constant "PHP" in /in/LYH6U:7 Stack trace: #0 {main} thrown in /in/LYH6U 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:
61.97 ms | 401 KiB | 8 Q