3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump('17.123' + '19.456'); var_dump('17 .123' + '19.456'); var_dump('17,123' + '19.456'); var_dump('1,700.123' + '19.456'); $currentLocale = setlocale(LC_ALL, 0); setlocale(LC_ALL, "en_DK.UTF-8"); var_dump('1,700.123' + '19.456'); setlocale(LC_ALL, $currentLocale); var_dump('17e123' + '19.456'); var_dump('hello' + '19.456');
Output for git.master, git.master_jit, rfc.property-hooks
float(36.579) Warning: A non-numeric value encountered in /in/iMGg8 on line 8 float(36.456) Warning: A non-numeric value encountered in /in/iMGg8 on line 9 float(36.456) Warning: A non-numeric value encountered in /in/iMGg8 on line 10 float(20.456) Warning: A non-numeric value encountered in /in/iMGg8 on line 14 float(20.456) float(1.7E+124) Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/iMGg8:18 Stack trace: #0 {main} thrown in /in/iMGg8 on line 18
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:
75.2 ms | 401 KiB | 8 Q