3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'producturl.php?id=736375493?=tm'; var_dump( sscanf($str, '%*[^?]?id=%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.4.130.0130.00817.64
8.4.120.0100.00920.52
8.4.110.0110.01018.11
8.4.100.0100.00817.73
8.4.90.0080.00220.46
8.4.80.0080.01020.49
8.4.70.0120.00817.91
8.4.60.0110.00920.61
8.4.50.0090.00720.43
8.4.40.0100.01019.28
8.4.30.0040.00418.61
8.4.20.0190.00025.81
8.4.10.0060.00323.66
8.3.260.0130.00616.48
8.3.250.0100.00818.93
8.3.240.0140.00516.39
8.3.230.0100.00916.35
8.3.220.0060.00218.97
8.3.210.0090.00616.50
8.3.200.0030.00516.36
8.3.190.0090.00817.31
8.3.180.0080.01116.43
8.3.170.0140.00417.12
8.3.160.0150.00318.21
8.3.150.0030.00518.82
8.3.140.0130.00416.30
8.3.130.0100.00016.54
8.3.120.0080.00020.59
8.3.110.0080.00020.94
8.3.100.0030.00616.53
8.3.90.0050.00326.77
8.3.80.0060.00319.36
8.3.70.0190.00318.15
8.3.60.0000.01416.38
8.3.50.0100.01016.42
8.3.40.0070.01120.20
8.3.30.0110.00318.63
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.290.0110.00816.60
8.2.280.0070.00418.54
8.2.270.0120.00417.11
8.2.260.0030.00718.98
8.2.250.0050.00318.39
8.2.240.0160.00018.75
8.2.230.0060.00322.58
8.2.220.0090.00024.06
8.2.210.0120.00326.77
8.2.200.0070.00318.88
8.2.190.0170.00318.41
8.2.180.0070.01118.51
8.2.170.0150.00318.64
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00420.73
8.2.110.0000.00921.00
8.2.100.0070.00317.72
8.2.90.0000.00818.22
8.2.80.0000.00718.09
8.2.70.0050.00317.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00319.65
8.2.30.0040.00717.92
8.2.20.0040.00319.26
8.2.10.0060.00318.67
8.2.00.0060.00718.52
8.1.330.0100.01017.89
8.1.320.0110.00816.25
8.1.310.0100.00016.50
8.1.300.0060.00318.22
8.1.290.0080.00330.84
8.1.280.0140.00025.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00321.93
8.1.230.0080.00420.74
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0030.00618.61
8.1.170.0000.00717.62
8.1.160.0000.00722.12
8.1.150.0000.00718.54
8.1.140.0020.00618.30
8.1.130.0060.00718.29
8.1.120.0070.00518.36
8.1.110.0080.00418.34
8.1.100.0070.00718.31
8.1.90.0100.00418.35
8.1.80.0070.00518.27
8.1.70.0100.00218.32
8.1.60.0080.00518.39
8.1.50.0130.00218.41
8.1.40.0090.00518.40
8.1.30.0110.00518.49
8.1.20.0050.00418.47
8.1.10.0010.00719.38
8.1.00.0080.00118.38
8.0.300.0000.00819.95
8.0.290.0040.00416.75
8.0.280.0040.00418.29
8.0.270.0050.00518.46
8.0.260.0040.00518.47
8.0.250.0080.00318.00
8.0.240.0080.00317.98
8.0.230.0070.00517.94
8.0.220.0060.00417.93
8.0.210.0040.00417.90
8.0.200.0040.00417.98
8.0.190.0110.00017.95
8.0.180.0060.00618.00
8.0.170.0100.00318.00
8.0.160.0020.00717.96
8.0.150.0020.00617.97
8.0.140.0060.00317.89
8.0.130.0030.00517.91
8.0.120.0020.00617.96
8.0.110.0020.00718.50
8.0.100.0060.00318.49
8.0.90.0030.00518.51
8.0.80.0010.00718.46
8.0.70.0050.00518.56
8.0.60.0050.00417.97
8.0.50.0090.00117.96
8.0.30.0100.00317.95
8.0.20.0070.00717.96
8.0.10.0090.00418.05

preferences:
27.25 ms | 403 KiB | 5 Q