3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "~^&multi&[^&]+(&((?|p-(?<sad>[1-9]\d*)|page-(?<sad>[1-9]\d*))))?&[^&]+(&((?|p-(?<gogosi>[1-9]\d*)|page-(?<gogosi>[1-9]\d*))))?&?$~J"; $string = "&multi&mickael&p-23&george&page-34"; if (preg_match($pattern, $string, $matches)) { print_r($matches); }

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.10.0110.00716.66
8.5.00.0140.00920.21
8.4.150.0000.00214.05
8.4.140.0150.01117.92
8.4.130.0110.00918.78
8.4.120.0060.00223.76
8.4.110.0150.00518.82
8.4.100.0140.00718.04
8.4.90.0120.00818.89
8.4.80.0120.00917.85
8.4.70.0140.00617.93
8.4.60.0140.00718.55
8.4.50.0060.00318.04
8.4.40.0060.00919.80
8.4.30.0120.00317.54
8.4.20.0060.00318.65
8.4.10.0090.00019.29
8.3.280.0120.00918.42
8.3.270.0060.00316.89
8.3.260.0070.00316.75
8.3.250.0120.00718.82
8.3.240.0100.00717.13
8.3.230.0100.01016.66
8.3.220.0090.01017.21
8.3.210.0050.00516.55
8.3.200.0040.00516.54
8.3.190.0100.01018.77
8.3.180.0150.00518.29
8.3.170.0160.00016.40
8.3.160.0090.00918.85
8.3.150.0000.00816.91
8.3.140.0040.00416.72
8.3.130.0040.00418.33
8.3.120.0060.00318.98
8.3.110.0040.00420.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0090.00016.63
8.3.70.0120.00918.29
8.3.60.0110.00416.75
8.3.50.0090.00616.48
8.3.40.0120.00318.97
8.3.30.0070.00718.71
8.3.20.0000.00820.61
8.3.10.0040.00423.66
8.3.00.0030.00522.58
8.2.290.0100.00820.07
8.2.280.0060.00322.56
8.2.270.0110.00716.65
8.2.260.0090.00918.79
8.2.250.0040.00418.47
8.2.240.0040.00417.28
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0070.00716.75
8.2.190.0090.00916.63
8.2.180.0070.00725.92
8.2.170.0070.01418.91
8.2.160.0120.00322.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00020.91
8.2.110.0090.00322.39
8.2.100.0040.00817.76
8.2.90.0000.00917.84
8.2.80.0000.00820.40
8.2.70.0040.00417.63
8.2.60.0080.00017.63
8.2.50.0060.00318.10
8.2.40.0030.00919.21
8.2.30.0000.00719.26
8.2.20.0000.00717.96
8.2.10.0040.00419.33
8.2.00.0000.00718.02
8.1.330.0120.00821.91
8.1.320.0120.00616.44
8.1.310.0100.00016.62
8.1.300.0040.00419.77
8.1.290.0060.00318.88
8.1.280.0070.01625.92
8.1.270.0000.00820.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.79
8.1.230.0080.00320.88
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0050.00317.35
8.1.190.0090.00017.34
8.1.180.0000.00818.10
8.1.170.0060.00318.66
8.1.160.0040.00418.86
8.1.150.0040.00418.90
8.1.140.0000.00820.97
8.1.130.0030.00320.36
8.1.120.0000.00817.45
8.1.110.0040.00317.55
8.1.100.0040.00417.56
8.1.90.0030.00517.45
8.1.80.0060.00317.47
8.1.70.0000.00817.59
8.1.60.0000.00817.68
8.1.50.0030.00517.64
8.1.40.0000.00817.63
8.1.30.0040.00417.64
8.1.20.0030.00617.74
8.1.10.0040.00417.74
8.1.00.0080.00017.52
8.0.300.0040.00420.07
8.0.290.0000.00916.75
8.0.280.0040.00418.41
8.0.270.0040.00417.27
8.0.260.0030.00318.46
8.0.250.0030.00316.92
8.0.240.0040.00417.00
8.0.230.0030.00617.02
8.0.220.0040.00416.98
8.0.210.0070.00017.04
8.0.200.0000.00717.08
8.0.190.0000.01017.00
8.0.180.0070.00017.06
8.0.170.0080.00016.94
8.0.160.0070.00016.99
8.0.150.0040.00416.88
8.0.140.0000.00716.98
8.0.130.0060.00013.37
8.0.120.0030.00316.98
8.0.110.0070.00016.92
8.0.100.0040.00417.05
8.0.90.0000.00716.96
8.0.80.0070.01316.92
8.0.70.0040.00416.88
8.0.60.0040.00416.87
8.0.50.0000.00717.04
8.0.30.0100.00717.15
8.0.20.0120.01017.10
8.0.10.0000.00717.13
8.0.00.0080.01016.88
7.4.330.0030.00316.77
7.4.320.0070.00016.68
7.4.300.0000.00616.57
7.4.290.0060.00316.76
7.4.280.0050.00316.65
7.4.270.0030.00316.70
7.4.260.0070.00016.75
7.4.250.0070.00016.74
7.4.240.0080.00016.62
7.4.230.0000.00816.84
7.4.220.0030.00316.69
7.4.210.0110.00716.77
7.4.200.0040.00416.57
7.4.160.0080.00816.69
7.4.140.0110.00717.86
7.4.130.0180.00616.59
7.4.120.0090.00916.70
7.4.110.0140.00416.66
7.4.100.0070.01016.46
7.4.90.0110.00816.58
7.4.80.0100.01019.39
7.4.70.0130.00316.53
7.4.60.0060.01216.48
7.4.50.0030.00816.48
7.4.40.0130.00316.57
7.4.00.0080.00515.08
7.3.330.0030.00313.12
7.3.320.0000.00513.02
7.3.310.0030.00316.43
7.3.300.0030.00316.29
7.3.290.0000.00816.33
7.3.280.0000.02016.23
7.3.260.0090.00716.49
7.3.240.0090.01016.43
7.3.230.0110.00616.66
7.3.210.0080.00816.43
7.3.200.0100.01016.36
7.3.190.0130.00316.53
7.3.180.0100.01316.34
7.3.170.0110.00616.73
7.3.160.0100.00716.57
7.3.30.0120.00614.75
7.3.20.0700.00714.84
7.3.10.0540.01614.81
7.3.00.0720.00714.95
7.2.330.0100.00716.46
7.2.320.0090.00916.52
7.2.310.0030.01316.57
7.2.300.0100.00716.63
7.2.290.0050.01416.62
7.2.160.0100.00014.91
7.2.150.0570.01015.23
7.2.140.0640.00715.07
7.2.130.0670.01314.89
7.2.120.0690.01115.18
7.2.110.0710.00614.80
7.2.100.0620.00614.89
7.2.90.0740.00314.98
7.2.80.0750.00314.77
7.2.70.0520.00714.80
7.2.60.0430.02015.04
7.2.50.0580.00615.09
7.2.40.0750.00314.94
7.2.30.0710.00615.12
7.2.20.0620.00914.95
7.2.10.0590.01015.06
7.2.00.0490.01014.89
7.1.270.0560.00713.99
7.1.260.0520.00714.25
7.1.250.0550.00714.14

preferences:
38.01 ms | 403 KiB | 5 Q