3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Stockholm'); setlocale(LC_NUMERIC, 'sv_SE.utf8'); var_dump(floatval(-0.055), 2); var_dump(number_format(floatval(-18.745), 2); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0270.07020.15
7.0.10.0100.07720.33
7.0.00.0000.06320.10
5.6.170.0370.07020.52
5.6.160.0100.08020.57
5.6.150.0070.06318.18
5.6.140.0030.04018.19
5.6.130.0030.05018.16
5.6.120.0170.06021.03
5.6.110.0070.08020.88
5.6.100.0000.04720.97
5.6.90.0070.05320.99
5.6.80.0230.06320.38
5.5.310.0270.04320.34
5.5.300.0070.07717.97
5.5.290.0100.07317.91
5.5.280.0130.07720.87
5.5.270.0270.06320.76
5.5.260.0100.06020.74
5.5.250.0170.07320.57
5.5.240.0100.04320.27

preferences:
140.23 ms | 1394 KiB | 7 Q