3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "You came in 21st out of 53"; sscanf($str, '%*[^0-9]%d%*[^0-9]%d', $place, $total); var_export(compact(['place', 'total'])); echo "\n---\n"; var_export(sscanf($str, '%*[^0-9]%d%*[^0-9]%d'));

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.0110.01219.95
8.4.150.0030.00014.05
8.4.140.0130.00817.23
8.4.130.0090.00718.86
8.4.120.0070.01024.05
8.4.110.0050.00520.64
8.4.100.0120.00917.68
8.4.90.0120.00918.55
8.4.80.0040.00517.58
8.4.70.0070.00417.55
8.4.60.0110.01018.70
8.4.50.0120.00619.28
8.4.40.0090.00619.35
8.4.30.0070.01320.37
8.4.20.0030.00617.64
8.4.10.0080.00321.88
8.3.280.0120.00918.41
8.3.270.0070.01216.57
8.3.260.0130.00316.56
8.3.250.0090.01018.82
8.3.240.0080.01217.07
8.3.230.0100.00816.41
8.3.220.0100.00517.21
8.3.210.0070.00716.51
8.3.200.0070.00116.72
8.3.190.0110.00817.11
8.3.180.0130.00716.72
8.3.170.0060.01218.80
8.3.160.0140.00320.70
8.3.150.0120.00620.79
8.3.140.0050.00316.32
8.3.130.0040.01116.78
8.3.120.0040.00420.76
8.3.110.0040.00420.94
8.3.100.0090.00016.41
8.3.90.0070.01126.77
8.3.80.0110.00018.18
8.3.70.0090.00616.50
8.3.60.0090.01218.43
8.3.50.0100.01020.22
8.3.40.0120.00320.07
8.3.30.0040.01118.71
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0140.00920.27
8.2.280.0130.00618.16
8.2.270.0110.00717.37
8.2.260.0060.00319.96
8.2.250.0110.00818.41
8.2.240.0030.00619.09
8.2.230.0040.00422.58
8.2.220.0100.00724.06
8.2.210.0080.00026.77
8.2.200.0060.00316.25
8.2.190.0090.00616.58
8.2.180.0140.00716.63
8.2.170.0030.01418.83
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.66
8.2.110.0060.00320.51
8.2.100.0060.00617.91
8.2.90.0000.00817.63
8.2.80.0000.00818.78
8.2.70.0070.00317.50
8.2.60.0030.00617.50
8.2.50.0000.00817.98
8.2.40.0030.00520.07
8.2.30.0030.00517.89
8.2.20.0040.00420.42
8.2.10.0070.00017.86
8.2.00.0000.00719.20
8.1.330.0100.00922.09
8.1.320.0140.00415.88
8.1.310.0120.00618.25
8.1.300.0030.00619.76
8.1.290.0060.00330.84
8.1.280.0110.01125.92
8.1.270.0090.00022.14
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0100.00019.00
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0050.00517.23
8.1.180.0080.00018.10
8.1.170.0030.00517.62
8.1.160.0030.00518.74
8.1.150.0040.00418.63
8.1.140.0070.00017.37
8.1.130.0000.00718.73
8.1.120.0030.00317.39
8.1.110.0080.00017.32
8.1.100.0080.00317.27
8.1.90.0040.00417.39
8.1.80.0070.00017.29
8.1.70.0090.00017.35
8.1.60.0000.01217.35
8.1.50.0170.00017.42
8.1.40.0110.00717.44
8.1.30.0040.01417.37
8.1.20.0080.00417.43
8.1.10.0040.00417.46
8.1.00.0070.00317.39
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.35
8.0.270.0000.00716.68
8.0.260.0070.00018.46
8.0.250.0070.00016.89
8.0.240.0030.00316.87
8.0.230.0070.00016.75
8.0.220.0060.00016.84
8.0.210.0000.00716.66
8.0.200.0030.00316.77
8.0.190.0140.00016.71
8.0.180.0130.00316.79
8.0.170.0120.00316.84
8.0.160.0080.00716.76
8.0.150.0150.00016.64
8.0.140.0140.00016.58
8.0.130.0130.00416.73
8.0.120.0070.00316.75
8.0.110.0090.00316.80
8.0.100.0120.00316.84
8.0.90.0120.00016.79
8.0.80.0060.00616.74
8.0.70.0050.00516.74
8.0.60.0130.00316.66
8.0.50.0050.01016.75
8.0.30.0120.00616.79
8.0.20.0120.00416.82
8.0.10.0120.00516.87
7.4.330.0040.00415.55
7.4.320.0030.00316.52
7.4.300.0030.00616.55
7.4.290.0100.00716.29
7.4.280.0130.00416.44
7.4.270.0120.00816.41
7.4.260.0090.00216.50
7.4.250.0070.00416.38
7.4.240.0030.00716.48
7.4.230.0090.00816.39
7.4.220.0000.01016.02
7.4.210.0050.00515.91
7.4.200.0080.00316.11
7.4.190.0070.00216.38
7.4.180.0100.00016.15
7.4.160.0060.00316.45
7.4.150.0030.01016.24
7.4.140.0080.00416.37
7.4.130.0100.00416.37
7.4.120.0070.00716.41
7.4.110.0090.00516.36
7.4.100.0160.00016.30
7.4.90.0170.00016.27
7.4.80.0060.00616.43
7.4.70.0100.00216.37
7.4.60.0080.00016.32
7.4.50.0030.00316.31
7.4.40.0030.00315.85
7.4.30.0000.00716.32
7.4.20.0030.00316.34
7.4.10.0040.00616.35
7.4.00.0100.00316.25

preferences:
144.47 ms | 403 KiB | 5 Q