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.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.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.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:
30.6 ms | 400 KiB | 5 Q