3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = '9570.00'; $num = number_format($num - 5, 2, '.'); echo $num;

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.10.0050.00316.64
8.5.00.0150.00619.95
8.4.150.0020.00114.05
8.4.140.0150.00617.53
8.4.130.0140.00617.75
8.4.120.0110.00922.09
8.4.110.0130.00722.38
8.4.100.0130.00817.44
8.4.90.0120.00917.59
8.4.80.0130.00617.67
8.4.70.0110.00417.73
8.4.60.0120.00517.76
8.4.50.0110.01017.58
8.4.40.0100.01017.61
8.4.30.0040.00418.73
8.4.20.0090.00017.89
8.4.10.0080.00019.19
8.3.280.0090.01218.41
8.3.270.0100.00916.52
8.3.260.0090.01016.67
8.3.250.0110.00718.72
8.3.240.0110.00916.70
8.3.230.0130.00616.44
8.3.220.0150.00317.30
8.3.210.0130.00616.56
8.3.200.0110.00816.63
8.3.190.0100.00816.30
8.3.180.0110.00918.61
8.3.170.0160.00318.69
8.3.160.0070.01418.54
8.3.150.0130.00618.73
8.3.140.0070.01117.23
8.3.130.0040.00418.23
8.3.120.0050.00520.70
8.3.110.0050.00316.69
8.3.100.0060.00318.32
8.3.90.0000.00926.77
8.3.80.0030.00617.97
8.3.70.0130.00916.38
8.3.60.0070.00716.38
8.3.50.0090.00618.14
8.3.40.0030.01222.02
8.3.30.0190.00318.45
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0080.01020.45
8.2.280.0140.00416.78
8.2.270.0110.00716.88
8.2.260.0110.00718.98
8.2.250.0060.01018.71
8.2.240.0060.01016.32
8.2.230.0100.00720.94
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0100.00018.30
8.2.190.0070.00716.75
8.2.180.0180.00416.38
8.2.170.0110.00418.96
8.2.160.0100.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.01126.16
8.2.120.0040.00420.89
8.2.110.0100.01022.13
8.2.100.0190.00320.76
8.2.90.0160.00620.82
8.2.80.0200.00320.64
8.2.70.0140.00720.69
8.2.60.0130.01020.45
8.2.50.0140.00320.80
8.2.40.0110.00720.51
8.2.30.0070.01020.55
8.2.20.0070.00420.68
8.2.10.0000.01020.55
8.2.00.0070.00320.68
8.1.330.0110.00816.33
8.1.320.0040.00516.04
8.1.310.0120.00618.52
8.1.300.0060.00317.97
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0070.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00320.39
8.1.230.0090.00020.40
8.1.220.0030.00720.41
8.1.210.0090.00021.79
8.1.200.0030.00620.16
8.1.190.0170.00720.00
8.1.180.0130.00920.24
8.1.170.0190.00420.45
8.1.160.0120.00620.40
8.1.150.0100.00720.35
8.1.140.0160.00320.46
8.1.130.0100.00020.34
8.1.120.0060.00320.41
8.1.110.0030.00620.20
8.1.100.0060.00320.38
8.1.90.0140.00420.37
8.1.80.0070.01020.38
8.1.70.0100.00720.36
8.1.60.0090.00020.54
8.1.50.0060.00320.47
8.1.40.0100.00020.32
8.1.30.0100.00020.47
8.1.20.0060.00320.48
8.1.10.0030.00620.33
8.1.00.0100.00020.43
8.0.300.0030.00619.84
8.0.290.0060.00319.73
8.0.280.0040.00419.70
8.0.270.0030.00619.81
8.0.260.0070.00319.87
8.0.250.0030.00619.84
8.0.240.0060.00319.66
8.0.230.0090.00019.89
8.0.220.0090.00019.81
8.0.210.0090.00019.68
8.0.200.0090.00019.88
8.0.190.0060.00319.82
8.0.180.0070.00319.73
8.0.170.0000.01019.59
8.0.160.0090.00019.74
8.0.150.0030.00619.63
8.0.140.0090.00019.73
8.0.130.0040.00419.66
8.0.120.0040.00419.82
8.0.110.0030.00620.01
8.0.100.0030.00619.74
8.0.90.0040.00419.73
8.0.80.0090.00019.88
8.0.70.0000.01019.62
8.0.60.0060.00319.71
8.0.50.0090.00019.82
8.0.30.0060.00319.87
8.0.20.0060.00319.99
8.0.10.0100.00020.05

preferences:
34 ms | 403 KiB | 5 Q