3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valor = "3cm"; 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.0090.00618.29
8.3.50.0030.01317.90
8.3.40.0060.00918.55
8.3.30.0060.00918.50
8.3.20.0050.00319.21
8.3.10.0070.00023.61
8.3.00.0080.00020.62
8.2.180.0000.01916.32
8.2.170.0070.00722.96
8.2.160.0090.00620.77
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0080.00018.09
8.2.120.0070.00026.35
8.2.110.0050.00519.18
8.2.100.0000.01017.84
8.2.90.0000.00817.88
8.2.80.0050.00317.97
8.2.70.0040.00418.05
8.2.60.0050.00318.02
8.2.50.0040.00418.10
8.2.40.0000.00819.48
8.2.30.0070.00019.18
8.2.20.0030.00517.98
8.2.10.0000.00717.94
8.2.00.0000.00817.59
8.1.280.0090.00525.92
8.1.270.0080.00018.85
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.34
8.1.230.0100.00022.11
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.23
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00418.75
8.1.150.0030.00518.74
8.1.140.0070.00022.14
8.1.130.0030.00320.11
8.1.120.0040.00417.51
8.1.110.0050.00317.33
8.1.100.0000.00717.45
8.1.90.0040.00417.46
8.1.80.0040.00417.35
8.1.70.0020.00517.39
8.1.60.0030.00617.57
8.1.50.0000.00917.34
8.1.40.0030.00617.41
8.1.30.0100.00017.69
8.1.20.0040.00417.47
8.1.10.0060.00317.55
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.50
8.0.270.0070.00017.33
8.0.260.0070.00018.45
8.0.250.0060.00316.90
8.0.240.0040.00416.98
8.0.230.0030.00316.95
8.0.220.0030.00316.84
8.0.210.0040.00416.79
8.0.200.0000.00716.99
8.0.190.0000.00816.83
8.0.180.0000.00716.88
8.0.170.0050.00316.89
8.0.160.0050.00216.83
8.0.150.0040.00416.78
8.0.140.0080.00016.84
8.0.130.0000.00613.26
8.0.120.0000.00716.84
8.0.110.0060.00316.87
8.0.100.0040.00416.82
8.0.90.0030.00516.87
8.0.80.0110.00916.85
8.0.70.0050.00216.76
8.0.60.0040.00416.76
8.0.50.0000.00816.65
8.0.30.0100.00817.09
8.0.20.0130.00717.40
8.0.10.0070.00016.86
8.0.00.0110.00716.87
7.4.330.0000.00515.55
7.4.320.0000.00616.54
7.4.300.0030.00316.45
7.4.290.0030.00316.57
7.4.280.0030.00716.39
7.4.270.0040.00416.58
7.4.260.0000.00716.60
7.4.250.0070.00016.52
7.4.240.0000.00716.56
7.4.230.0000.00716.59
7.4.220.0040.00416.42
7.4.210.0070.00816.48
7.4.200.0030.00316.23
7.4.160.0070.00916.41
7.4.140.0060.01117.86
7.4.130.0140.00716.50
7.4.120.0130.00816.48
7.4.110.0090.00916.53
7.4.100.0100.00616.45
7.4.90.0030.01316.64
7.4.80.0150.00619.39
7.4.70.0030.01316.32
7.4.60.0120.00416.39
7.4.50.0040.01516.44
7.4.40.0080.00816.63
7.4.00.0030.00814.91
7.3.330.0030.00312.93
7.3.320.0000.00513.02
7.3.310.0000.01016.07
7.3.300.0030.00316.23
7.3.290.0000.00816.21
7.3.280.0090.00816.16
7.3.260.0060.01216.36
7.3.240.0110.00616.37
7.3.230.0130.00316.49
7.3.210.0100.00716.41
7.3.200.0130.00316.25
7.3.190.0050.01016.30
7.3.180.0080.00816.21
7.3.170.0150.00816.33
7.3.160.0120.00616.42
7.2.330.0120.01216.66
7.2.320.0090.00916.46
7.2.310.0070.01016.67
7.2.300.0030.01316.38
7.2.290.0030.01416.73
7.2.110.0230.00314.62
7.2.100.0190.01314.64
7.2.90.0220.00414.56
7.2.80.0210.00314.36
7.2.70.0210.00714.84
7.2.60.0170.01015.04
7.2.50.0190.00614.89
7.2.40.0190.00514.73
7.2.30.0180.00314.86
7.2.20.0170.00714.79
7.2.10.0290.00314.97
7.2.00.0250.00914.78
7.1.230.0210.00313.64
7.1.220.0180.00713.78
7.1.210.0120.00913.61
7.1.200.0190.00413.89
7.1.190.0220.00013.88
7.1.180.0240.00613.94
7.1.170.0210.01013.65
7.1.160.0220.00613.88
7.1.150.0160.00614.01
7.1.140.0150.00613.69
7.1.130.0220.00913.84
7.1.120.0250.00613.66
7.1.110.0210.01013.90
7.1.100.0230.00313.46
7.1.90.0370.00613.36
7.1.80.0220.00313.93
7.1.70.0190.00714.02
7.1.60.0230.01731.98
7.1.50.0360.00331.66
7.1.40.0330.01031.62
7.1.30.0390.01331.86
7.1.20.0490.01031.74
7.1.10.0150.00913.73
7.1.00.0220.00913.88
5.6.380.0040.01114.35

preferences:
65.64 ms | 400 KiB | 5 Q