3v4l.org

run code in 300+ PHP versions simultaneously
<?php function clean_number($input) : string { return number_format($input,2); } $number = 55.36643455; echo clean_number($number);

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.0150.00819.73
8.4.150.0020.00014.05
8.4.140.0110.00917.52
8.4.130.0110.00817.92
8.4.120.0060.00620.70
8.4.110.0130.00722.36
8.4.100.0120.00817.52
8.4.90.0150.00520.64
8.4.80.0050.00520.43
8.4.70.0120.00818.63
8.4.60.0120.00820.59
8.4.50.0140.00620.60
8.4.40.0120.00620.71
8.4.30.0110.00718.73
8.4.20.0030.01020.36
8.4.10.0100.01023.84
8.3.280.0130.01018.25
8.3.270.0110.00916.43
8.3.260.0110.00716.45
8.3.250.0100.00818.90
8.3.240.0060.00416.66
8.3.230.0120.00916.32
8.3.220.0140.00419.00
8.3.210.0090.00416.74
8.3.200.0060.00316.48
8.3.190.0030.00417.13
8.3.180.0120.00618.80
8.3.170.0150.00017.21
8.3.160.0110.00717.14
8.3.150.0060.01216.43
8.3.140.0080.00016.32
8.3.130.0030.00618.21
8.3.120.0100.00018.96
8.3.110.0090.00920.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0040.00418.31
8.3.70.0150.00418.43
8.3.60.0150.00618.43
8.3.50.0150.00016.57
8.3.40.0100.01019.91
8.3.30.0080.00818.68
8.3.20.0030.00524.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.290.0090.01020.24
8.2.280.0130.00618.23
8.2.270.0080.00816.73
8.2.260.0090.00617.02
8.2.250.0000.00816.76
8.2.240.0090.00018.85
8.2.230.0040.00722.58
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0060.00316.50
8.2.190.0140.00316.63
8.2.180.0030.01216.50
8.2.170.0140.00419.14
8.2.160.0180.00022.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0060.00321.04
8.2.110.0030.00721.17
8.2.100.0060.00617.78
8.2.90.0040.00418.26
8.2.80.0000.00718.22
8.2.70.0050.00317.75
8.2.60.0000.00917.75
8.2.50.0120.00619.52
8.2.40.0140.00319.52
8.2.30.0090.00919.52
8.2.20.0130.00319.52
8.2.10.0070.00919.52
8.2.00.0090.00719.52
8.1.330.0120.00718.18
8.1.320.0130.00716.23
8.1.310.0060.01216.81
8.1.300.0180.00318.56
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0100.00021.05
8.1.220.0000.00817.74
8.1.210.0040.00418.81
8.1.200.0040.00417.23
8.1.190.0000.00817.25
8.1.180.0090.00919.52
8.1.170.0140.00319.52
8.1.160.0040.01219.52
8.1.150.0040.01219.52
8.1.140.0120.00419.52
8.1.130.0170.00019.52
8.1.120.0120.00419.52
8.1.110.0080.00819.52
8.1.100.0110.00519.52
8.1.90.0100.00619.52
8.1.80.0110.00519.52
8.1.70.0180.00019.52
8.1.60.0150.00419.52
8.1.50.0160.00419.52
8.1.40.0150.00419.52
8.1.30.0110.00719.52
8.1.20.0170.00019.52
8.1.10.0180.00319.52
8.1.00.0140.00419.52
8.0.300.0060.00320.02
8.0.290.0000.00716.75
8.0.280.0110.00419.52
8.0.270.0120.00419.52
8.0.260.0070.01119.52
8.0.250.0140.00319.52
8.0.240.0100.00719.52
8.0.230.0090.00919.52
8.0.220.0160.00019.52
8.0.210.0090.00719.52
8.0.200.0120.00419.52
8.0.190.0140.00319.52
8.0.180.0080.00819.52
8.0.170.0090.00919.52
8.0.160.0070.01119.52
8.0.150.0170.00019.52
8.0.140.0100.00719.52
8.0.130.0170.00019.52
8.0.120.0090.00919.52
8.0.110.0120.00419.52
8.0.100.0130.00319.52
8.0.90.0110.00619.52
8.0.80.0100.00619.52
8.0.70.0090.00919.52
8.0.60.0120.00419.52
8.0.50.0060.00919.52
8.0.30.0120.00419.52
8.0.20.0140.00319.52
8.0.10.0120.00419.52

preferences:
28.37 ms | 403 KiB | 5 Q