3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '152.15 x 12.34 x 11mm', '152.15x12.34x11 mm', '152.15mmx12.34mm x 11mm', ]; foreach ($tests as $test) { var_dump( sscanf($test, '%f%*[mx ]%f%*[mx ]%f') ); echo "\n"; }

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.00616.32
8.3.50.0040.01119.98
8.3.40.0110.00318.71
8.3.30.0070.01019.20
8.3.20.0000.00724.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.180.0070.00725.92
8.2.170.0070.01022.96
8.2.160.0000.01422.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00320.38
8.2.100.0080.00618.03
8.2.90.0080.00017.63
8.2.80.0030.00618.79
8.2.70.0050.00318.03
8.2.60.0000.00917.63
8.2.50.0000.00918.07
8.2.40.0050.00319.88
8.2.30.0080.00017.92
8.2.20.0040.00420.30
8.2.10.0000.00718.05
8.2.00.0050.00219.14
8.1.280.0180.00025.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00320.96
8.1.230.0080.00419.04
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00718.93
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0000.00718.78
8.1.150.0070.00018.63
8.1.140.0040.00417.44
8.1.130.0000.00718.88
8.1.120.0100.00017.49
8.1.110.0030.00517.33
8.1.100.0040.00417.43
8.1.90.0000.00717.48
8.1.80.0040.00417.50
8.1.70.0000.00717.44
8.1.60.0000.00717.53
8.1.50.0250.00417.52
8.1.40.0210.00517.38
8.1.30.0170.00917.50
8.1.20.0210.00317.72
8.1.10.0250.00017.39
8.1.00.0200.00417.39
8.0.300.0000.00718.77
8.0.290.0030.00616.75
8.0.280.0000.00718.30
8.0.270.0000.00817.86
8.0.260.0070.00018.30
8.0.250.0030.00316.93
8.0.240.0000.00616.85
8.0.230.0000.00716.81
8.0.220.0040.00416.90
8.0.210.0040.00416.83
8.0.200.0070.00016.92
8.0.190.0060.00316.92
8.0.180.0170.00316.85
8.0.170.0130.00816.85
8.0.160.0210.00016.93
8.0.150.0150.00516.77
8.0.140.0110.00716.73
8.0.130.0120.00916.79
8.0.120.0110.00416.78
8.0.110.0110.00016.89
8.0.100.0080.00316.84
8.0.90.0000.01116.90
8.0.80.0110.00016.87
8.0.70.0030.00616.70
8.0.60.0040.00816.71
8.0.50.0110.01116.85
8.0.30.0240.00016.70
8.0.20.0170.01116.75
8.0.10.0260.00316.81
7.4.330.0060.00015.55
7.4.320.0000.00616.50
7.4.300.0060.00016.59
7.4.290.0270.00416.55
7.4.280.0180.00616.48
7.4.270.0240.00016.49
7.4.260.0210.00316.56
7.4.250.0170.00716.58
7.4.240.0170.00716.48
7.4.230.0260.00016.59
7.4.220.0200.00016.52
7.4.210.0150.00016.55
7.4.200.0110.00616.58
7.4.190.0130.00716.52
7.4.180.0150.00516.56
7.4.160.0170.00316.55
7.4.150.0150.00416.45
7.4.140.0140.00516.47
7.4.130.0130.00716.53
7.4.120.0190.00016.57
7.4.110.0150.00516.23
7.4.100.0170.00416.38
7.4.90.0180.00316.44
7.4.80.0170.00416.53
7.4.70.0180.00416.42
7.4.60.0140.00716.46
7.4.50.0170.00416.30
7.4.40.0120.00916.26
7.4.30.0180.00316.21
7.4.20.0170.00316.40
7.4.10.0230.00316.34
7.4.00.0220.00416.39
4.3.00.0020.0019.15

preferences:
53.97 ms | 400 KiB | 5 Q