3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 2.9; echo number_format($num, 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)
8.5.00.0130.00819.91
8.4.150.0020.00014.05
8.4.140.0140.01019.24
8.4.130.0090.01217.50
8.4.120.0110.00920.52
8.4.110.0110.00922.44
8.4.100.0120.00817.50
8.4.90.0050.00618.70
8.4.80.0060.00317.69
8.4.70.0100.01117.69
8.4.60.0070.01118.90
8.4.50.0130.00419.62
8.4.40.0070.01120.41
8.4.30.0090.00922.27
8.4.20.0080.00018.05
8.4.10.0090.00021.93
8.3.280.0110.00918.18
8.3.270.0100.01016.62
8.3.260.0090.01016.54
8.3.250.0080.00818.74
8.3.240.0120.00616.41
8.3.230.0130.00516.47
8.3.220.0050.00916.98
8.3.210.0080.00616.35
8.3.200.0040.00516.19
8.3.190.0070.01117.23
8.3.180.0110.00816.31
8.3.170.0090.00917.00
8.3.160.0070.01116.50
8.3.150.0100.00518.79
8.3.140.0070.00720.66
8.3.130.0120.00618.37
8.3.120.0040.00418.78
8.3.110.0050.00320.94
8.3.100.0080.00424.06
8.3.90.0030.00726.77
8.3.80.0030.00617.97
8.3.70.0120.00318.19
8.3.60.0140.00716.38
8.3.50.0180.00416.50
8.3.40.0090.00420.29
8.3.30.0070.00718.67
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00420.32
8.2.280.0030.00620.12
8.2.270.0080.01116.89
8.2.260.0040.00420.57
8.2.250.0040.00416.51
8.2.240.0000.00818.61
8.2.230.0040.00422.58
8.2.220.0170.00337.54
8.2.210.0040.01126.77
8.2.200.0030.00618.20
8.2.190.0060.01318.13
8.2.180.0070.01116.75
8.2.170.0120.00918.86
8.2.160.0060.00922.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.08
8.2.110.0050.00522.20
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0050.00318.96
8.2.70.0040.00417.63
8.2.60.0120.00617.24
8.2.50.0130.00417.63
8.2.40.0080.00817.63
8.2.30.0130.00417.38
8.2.20.0000.01717.50
8.2.10.0100.00717.38
8.2.00.0080.00817.38
8.1.330.0130.00522.13
8.1.320.0110.00816.20
8.1.310.0070.00718.32
8.1.300.0000.00919.28
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00420.33
8.1.230.0100.00317.89
8.1.220.0040.00417.79
8.1.210.0080.00018.77
8.1.200.0050.00317.35
8.1.190.0120.00617.23
8.1.180.0160.00217.10
8.1.170.0120.00517.09
8.1.160.0080.00816.88
8.1.150.0120.00417.00
8.1.140.0120.00417.13
8.1.130.0050.01017.00
8.1.120.0130.00317.00
8.1.110.0120.00416.88
8.1.100.0080.00817.25
8.1.90.0100.00717.13
8.1.80.0120.00617.23
8.1.70.0140.00517.13
8.1.60.0090.00917.38
8.1.50.0130.00617.25
8.1.40.0110.00717.25
8.1.30.0140.00517.38
8.1.20.0110.00717.13
8.1.10.0190.00017.13
8.1.00.0150.00417.25
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0170.00016.52
8.0.270.0090.00916.60
8.0.260.0170.00016.86
8.0.250.0120.00316.75
8.0.240.0050.01016.72
8.0.230.0170.00016.52
8.0.220.0160.00016.52
8.0.210.0120.00516.52
8.0.200.0120.00416.60
8.0.190.0040.01216.63
8.0.180.0120.00616.52
8.0.170.0120.00416.52
8.0.160.0170.00016.63
8.0.150.0100.00716.63
8.0.140.0070.01016.52
8.0.130.0050.01116.52
8.0.120.0180.00016.75
8.0.110.0110.00416.52
8.0.100.0100.00716.52
8.0.90.0110.00516.52
8.0.80.0180.00016.52
8.0.70.0170.00016.63
8.0.60.0080.00816.63
8.0.50.0100.00516.52
8.0.30.0160.00016.52
8.0.20.0100.00516.63
8.0.10.0150.00416.52

preferences:
30.67 ms | 403 KiB | 5 Q