3v4l.org

run code in 300+ PHP versions simultaneously
<?php $money1 = 68.75; $money2 = 54.35; $money = $money1 + $money2; // echo $money will output "123.1"; $formatted = sprintf("%01.2f", $money); echo $formatted will output "123.10" ?>

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)
5.4.140.0110.04212.07
5.4.130.0080.04412.05
5.4.120.0080.05312.01
5.4.110.0060.04212.01
5.4.100.0080.03912.01
5.4.90.0070.04112.01
5.4.80.0050.04412.01
5.4.70.0070.03912.00
5.4.60.0070.04012.01
5.4.50.0070.04212.00
5.4.40.0080.04311.99
5.4.30.0100.04311.99
5.4.20.0100.04811.99
5.4.10.0120.05911.99
5.4.00.0080.04811.48
5.3.240.0090.04412.72
5.3.230.0090.04912.71
5.3.220.0090.05412.68
5.3.210.0070.05412.68
5.3.200.0100.04712.68
5.3.190.0090.05212.68
5.3.180.0090.04612.67
5.3.170.0070.05312.67
5.3.160.0090.06212.67
5.3.150.0100.04412.67
5.3.140.0080.04412.66
5.3.130.0090.04412.66
5.3.120.0100.04712.66
5.3.110.0080.05012.66
5.3.100.0080.04612.12
5.3.90.0090.04312.08
5.3.80.0070.04312.07
5.3.70.0050.04512.07
5.3.60.0070.04312.06
5.3.50.0070.04212.00
5.3.40.0040.04712.00
5.3.30.0100.04311.95

preferences:
148.4 ms | 1394 KiB | 7 Q