3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valor = "3.53cm"; echo number_format(str_replace("cm", "", $valor), 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.3.60.0060.00918.55
8.3.50.0100.00617.72
8.3.40.0140.00018.86
8.3.30.0090.00618.46
8.3.20.0040.00419.34
8.3.10.0060.00323.78
8.3.00.0000.00820.78
8.2.180.0120.00816.38
8.2.170.0070.00722.96
8.2.160.0030.01020.95
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00018.09
8.2.120.0040.00426.35
8.2.110.0030.00719.45
8.2.100.0060.00617.91
8.2.90.0050.00317.75
8.2.80.0050.00317.97
8.2.70.0040.00418.05
8.2.60.0050.00318.18
8.2.50.0040.00418.10
8.2.40.0040.00419.46
8.2.30.0040.00419.15
8.2.20.0000.00718.17
8.2.10.0040.00418.02
8.2.00.0080.00017.64
8.1.280.0070.00725.92
8.1.270.0000.00818.70
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.82
8.1.230.0060.00622.25
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0080.00017.00
8.1.180.0030.00518.10
8.1.170.0050.00318.55
8.1.160.0070.00018.75
8.1.150.0000.00718.97
8.1.140.0000.00722.14
8.1.130.0000.00820.12
8.1.120.0000.00717.50
8.1.110.0000.00817.43
8.1.100.0000.00717.44
8.1.90.0040.00417.46
8.1.80.0000.00717.44
8.1.70.0040.00417.48
8.1.60.0040.00417.45
8.1.50.0040.00417.52
8.1.40.0030.00517.38
8.1.30.0000.00917.51
8.1.20.0070.00017.49
8.1.10.0050.00317.44
8.1.00.0030.00517.42
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.49
8.0.270.0000.00717.30
8.0.260.0030.00318.52
8.0.250.0050.00317.00
8.0.240.0080.00016.95
8.0.230.0000.00716.83
8.0.220.0000.00716.88
8.0.210.0000.00716.86
8.0.200.0000.00616.93
8.0.190.0040.00416.84
8.0.180.0080.00016.79
8.0.170.0040.00416.91
8.0.160.0070.00016.91
8.0.150.0000.00716.83
8.0.140.0000.00716.83
8.0.130.0050.00313.38
8.0.120.0040.00416.78
8.0.110.0000.00716.77
8.0.100.0000.00716.88
8.0.90.0000.00716.92
8.0.80.0080.00716.86
8.0.70.0000.00716.90
8.0.60.0070.00016.85
8.0.50.0070.00016.93
8.0.30.0100.00917.15
8.0.20.0120.00617.40
8.0.10.0000.00817.03
8.0.00.0050.01516.76
7.4.330.0000.00615.55
7.4.320.0030.00316.59
7.4.300.0030.00316.57
7.4.290.0000.00716.57
7.4.280.0050.00516.42
7.4.270.0040.00416.43
7.4.260.0050.00316.59
7.4.250.0000.00716.35
7.4.240.0000.00716.54
7.4.230.0040.00416.37
7.4.220.0000.00716.40
7.4.210.0050.01216.50
7.4.200.0070.00016.48
7.4.160.0080.00916.43
7.4.140.0120.00617.86
7.4.130.0190.00616.67
7.4.120.0120.00916.38
7.4.110.0090.00916.50
7.4.100.0120.01216.57
7.4.90.0100.00716.51
7.4.80.0110.00619.39
7.4.70.0030.01416.49
7.4.60.0100.00616.49
7.4.50.0070.00716.56
7.4.40.0040.01116.59
7.4.00.0040.01115.13
7.3.330.0050.00013.02
7.3.320.0020.00313.10
7.3.310.0030.00616.02
7.3.300.0000.00716.09
7.3.290.0030.00316.21
7.3.280.0110.00316.19
7.3.260.0110.00916.41
7.3.240.0090.01016.27
7.3.230.0140.00316.29
7.3.210.0100.01416.46
7.3.200.0030.01316.55
7.3.190.0090.00616.60
7.3.180.0110.00916.21
7.3.170.0070.01616.13
7.3.160.0090.00916.59
7.2.330.0090.00916.61
7.2.320.0050.01416.52
7.2.310.0130.01916.43
7.2.300.0040.01216.61
7.2.290.0120.00616.54
7.2.110.0310.00714.71
7.2.100.0240.00614.50
7.2.90.0310.00714.57
7.2.80.0220.00614.67
7.2.70.0310.01014.71
7.2.60.0310.00914.69
7.2.50.0930.01014.96
7.2.40.0250.00314.50
7.2.30.0260.01314.67
7.2.20.0310.01214.64
7.2.10.0330.01014.64
7.2.00.0400.00715.01
7.1.230.0290.00313.82
7.1.220.0220.00313.96
7.1.210.0220.00313.48
7.1.200.0400.01013.86
7.1.190.0270.00713.83
7.1.180.0270.00313.96
7.1.170.0400.00313.52
7.1.160.0220.00613.72
7.1.150.0200.01613.84
7.1.140.0350.00613.63
7.1.130.0210.00913.85
7.1.120.0300.01013.74
7.1.110.0250.00913.49
7.1.100.0240.00613.71
7.1.90.0240.00313.73
7.1.80.0260.00313.64
7.1.70.0360.00613.82
7.1.60.0460.00331.89
7.1.50.0400.01331.79
7.1.40.0710.00331.84
7.1.30.0370.01331.73
7.1.20.0800.01331.83
7.1.10.0240.00713.81
7.1.00.0200.00713.72
5.6.380.0060.00914.04

preferences:
57.98 ms | 401 KiB | 5 Q