3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "In My Cart : 11 items"; var_export(sscanf(' ' . $string, '%*[^0-9]%d')[0]);

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.0130.00820.06
8.4.150.0030.00014.05
8.4.140.0110.01017.48
8.4.130.0070.00519.55
8.4.120.0050.00420.60
8.4.110.0080.00422.44
8.4.100.0090.00817.77
8.4.90.0140.00718.59
8.4.80.0050.00317.88
8.4.70.0090.00617.55
8.4.60.0160.00418.70
8.4.50.0130.00919.36
8.4.40.0130.00617.57
8.4.30.0070.01118.55
8.4.20.0060.00318.05
8.4.10.0190.00019.33
8.3.280.0120.01018.29
8.3.270.0080.01316.55
8.3.260.0100.00916.51
8.3.250.0090.00818.83
8.3.240.0120.00716.52
8.3.230.0110.00816.57
8.3.220.0110.00617.03
8.3.210.0100.00516.82
8.3.200.0080.00616.36
8.3.190.0100.00916.70
8.3.180.0100.00818.60
8.3.170.0120.00618.86
8.3.160.0040.01118.31
8.3.150.0110.00720.41
8.3.140.0110.00718.76
8.3.130.0090.00018.30
8.3.120.0060.00318.80
8.3.110.0080.00320.94
8.3.100.0060.00324.06
8.3.90.0130.00726.77
8.3.80.0040.00417.97
8.3.70.0070.00716.63
8.3.60.0060.00918.43
8.3.50.0090.00916.56
8.3.40.0070.00721.93
8.3.30.0070.00719.06
8.3.20.0070.00024.18
8.3.10.0030.00624.66
8.3.00.0080.00026.16
8.2.290.0120.00620.60
8.2.280.0050.00418.30
8.2.270.0110.00717.02
8.2.260.0030.00518.82
8.2.250.0130.00318.25
8.2.240.0060.00317.22
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0090.00016.75
8.2.190.0130.00316.58
8.2.180.0070.01418.06
8.2.170.0040.01118.94
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0110.00724.66
8.2.130.0070.00026.16
8.2.120.0030.00720.81
8.2.110.0070.00320.92
8.2.100.0290.00818.44
8.2.90.0290.00018.44
8.2.80.0260.00318.44
8.2.70.0220.00918.44
8.2.60.0250.00918.44
8.2.50.0200.01018.44
8.2.40.0200.00718.44
8.2.30.0230.00718.44
8.2.20.0250.00318.44
8.2.10.0200.01018.44
8.2.00.0230.00418.44
8.1.330.0050.00321.74
8.1.320.0100.01016.22
8.1.310.0040.00418.32
8.1.300.0040.00417.67
8.1.290.0040.00430.84
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0150.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00022.67
8.1.230.0230.00818.44
8.1.220.0230.00318.44
8.1.210.0290.00418.44
8.1.200.0250.00618.44
8.1.190.0240.00318.44
8.1.180.0190.00718.44
8.1.170.0210.00618.44
8.1.160.0200.00718.44
8.1.150.0170.01118.44
8.1.140.0240.00318.44
8.1.130.0260.00018.44
8.1.120.0200.00818.44
8.1.110.0160.01018.44
8.1.100.0230.00318.44
8.1.90.0170.00918.44
8.1.80.0270.00018.44
8.1.70.0210.00618.44
8.1.60.0260.00318.44
8.1.50.0180.00918.44
8.1.40.0170.00718.44
8.1.30.0210.00618.44
8.1.20.0170.00718.44
8.1.10.0240.00318.44
8.1.00.0190.00518.44
8.0.300.0200.00318.44
8.0.290.0270.00018.44
8.0.280.0210.00618.44
8.0.270.0190.00618.44
8.0.260.0220.00618.44
8.0.250.0200.00618.44
8.0.240.0250.00018.44
8.0.230.0270.00418.44
8.0.220.0230.00318.44
8.0.210.0220.00718.44
8.0.200.0230.00418.44
8.0.190.0200.00818.44
8.0.180.0280.00018.44
8.0.170.0260.00418.44
8.0.160.0240.00318.44
8.0.150.0220.00018.44
8.0.140.0180.00918.44
8.0.130.0140.00718.44
8.0.120.0240.00218.44
8.0.110.0230.00418.44
8.0.100.0180.00918.44
8.0.90.0340.00018.44
8.0.80.0270.00018.44
8.0.70.0240.00318.44
8.0.60.0230.00318.44
8.0.50.0170.01018.44
8.0.30.0260.00018.44
8.0.20.0220.00418.44
8.0.10.0220.00518.44

preferences:
33.62 ms | 403 KiB | 5 Q