3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '[Links label="my_label" url="my_url" external="other_value"]'; preg_match("/ (.*?)=\"(.*?)\" (.*?)=\"(.*?)\" (.*?)=\"(.*?)\"/", $str, $match); unset($match[0]); foreach(array_chunk($match,2) as $m){ $res[$m[0]] = $m[1]; } var_dump($res);

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.0090.01018.50
8.5.00.0100.01020.04
8.4.150.0020.00014.05
8.4.140.0120.00917.89
8.4.130.0120.00918.92
8.4.120.0110.00824.25
8.4.110.0100.01118.73
8.4.100.0090.00117.93
8.4.90.0140.00718.00
8.4.80.0080.00517.44
8.4.70.0140.00817.99
8.4.60.0060.00218.84
8.4.50.0100.00717.89
8.4.40.0200.00018.14
8.4.30.0040.01520.34
8.4.20.0130.00718.09
8.4.10.0000.00820.55
8.3.280.0150.00720.41
8.3.270.0120.00816.66
8.3.260.0130.00716.94
8.3.250.0070.00918.85
8.3.240.0090.00917.02
8.3.230.0060.00316.80
8.3.220.0070.00117.29
8.3.210.0120.00716.82
8.3.200.0040.00416.83
8.3.190.0080.00719.21
8.3.180.0100.00916.69
8.3.170.0090.00916.64
8.3.160.0100.01016.82
8.3.150.0070.01119.14
8.3.140.0050.00317.02
8.3.130.0000.01017.10
8.3.120.0030.00620.70
8.3.110.0060.00318.46
8.3.100.0090.00616.92
8.3.90.0040.00418.36
8.3.80.0030.00619.36
8.3.70.0040.01216.75
8.3.60.0140.00516.75
8.3.50.0070.01024.57
8.3.40.0070.00718.96
8.3.30.0070.00718.89
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.290.0110.00720.64
8.2.280.0060.01318.82
8.2.270.0100.01018.89
8.2.260.0030.01418.86
8.2.250.0050.00516.95
8.2.240.0000.00817.47
8.2.230.0060.00320.94
8.2.220.0040.01124.06
8.2.210.0140.00426.77
8.2.200.0060.00318.41
8.2.190.0070.01416.75
8.2.180.0070.00725.92
8.2.170.0180.00019.04
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00021.06
8.2.110.0070.00319.45
8.2.100.0000.01118.00
8.2.90.0000.00818.34
8.2.80.0040.00417.97
8.2.70.0050.00317.91
8.2.60.0050.00318.34
8.2.50.0060.00318.10
8.2.40.0000.00719.43
8.2.30.0050.00219.34
8.2.20.0000.00718.07
8.2.10.0070.00019.36
8.2.00.0080.00019.22
8.1.330.0060.00316.84
8.1.320.0110.00816.53
8.1.310.0060.01316.77
8.1.300.0060.01220.25
8.1.290.0090.00018.88
8.1.280.0120.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.01019.21
8.1.230.0070.00320.99
8.1.220.0000.00817.78
8.1.210.0040.00420.85
8.1.200.0090.00017.35
8.1.190.0000.00917.60
8.1.180.0060.00318.10
8.1.170.0050.00518.63
8.1.160.0000.00918.97
8.1.150.0040.00418.86
8.1.140.0040.00418.84
8.1.130.0030.00320.28
8.1.120.0080.00017.68
8.1.110.0030.00517.63
8.1.100.0040.00417.60
8.1.90.0000.00817.49
8.1.80.0040.00717.46
8.1.70.0000.00717.50
8.1.60.0030.00517.74
8.1.50.0000.01017.71
8.1.40.0040.00417.72
8.1.30.0030.00517.71
8.1.20.0040.00417.66
8.1.10.0050.00517.70
8.1.00.0060.00617.73
8.0.300.0040.00419.79
8.0.290.0000.00916.88
8.0.280.0000.00718.41
8.0.270.0030.00316.92
8.0.260.0030.00320.23
8.0.250.0000.00717.13
8.0.240.0030.00317.00
8.0.230.0000.00717.00
8.0.220.0070.00016.94
8.0.210.0000.00717.01
8.0.200.0000.00617.00
8.0.190.0040.00417.14
8.0.180.0040.00417.03
8.0.170.0040.00417.05
8.0.160.0000.00817.10
8.0.150.0000.00716.88
8.0.140.0040.00317.05
8.0.130.0030.00313.47
8.0.120.0000.00716.91
8.0.110.0030.00317.05
8.0.100.0030.00516.93
8.0.90.0040.00416.99
8.0.80.0090.00917.07
8.0.70.0000.00817.08
8.0.60.0040.00417.09
8.0.50.0040.00416.85
8.0.30.0120.00617.20
8.0.20.0130.00617.26
8.0.10.0070.00017.11
8.0.00.0090.00917.03
7.4.330.0000.00515.55
7.4.320.0030.00316.83
7.4.300.0060.00016.63
7.4.290.0070.00016.59
7.4.280.0000.00816.75
7.4.270.0000.00716.61
7.4.260.0050.00013.47
7.4.250.0030.00516.68
7.4.240.0040.00416.79
7.4.230.0000.00716.63
7.4.220.0020.00516.75
7.4.210.0060.01116.73
7.4.200.0000.00816.83
7.4.130.0060.01116.70
7.4.120.0040.01416.64
7.4.110.0110.00716.67
7.4.100.0190.00416.65
7.4.90.0140.01116.53
7.4.80.0130.01116.68
7.4.70.0180.01216.52
7.4.60.0160.01416.76
7.4.50.0210.01016.62
7.4.40.0220.00716.71
7.4.30.0190.01416.74
7.4.20.0140.00716.61
7.4.10.0130.00316.64
7.4.00.0080.01116.68
7.3.330.0040.00416.42
7.3.320.0030.00413.21
7.3.310.0030.00316.32
7.3.300.0030.00316.52
7.3.290.0090.00716.48
7.3.260.0150.01016.84
7.3.230.0040.01416.84
7.3.210.0100.00716.57
7.3.200.0190.00616.50
7.3.190.0240.00916.63
7.3.180.0160.01616.69
7.3.170.0180.01116.57
7.3.160.0220.00916.73
7.3.150.0230.01016.44
7.3.140.0030.01316.86
7.3.130.0080.00916.48
7.3.120.0060.01116.81
7.3.110.0080.00816.55
7.3.100.0140.00416.80
7.3.90.0110.00816.62
7.3.80.0060.01616.52
7.3.70.0110.00716.49
7.3.60.0100.00816.63
7.3.50.0070.01016.66
7.3.40.0170.00516.48
7.3.30.0100.01416.53
7.3.20.0150.00416.43
7.3.10.0100.01016.55
7.3.00.0260.01716.79
7.2.330.0180.00616.76
7.2.320.0250.00416.81
7.2.310.0230.01316.95
7.2.300.0240.01216.85
7.2.290.0240.00816.71
7.2.280.0140.01716.82
7.2.270.0060.01216.67
7.2.260.0160.00316.75
7.2.250.0110.00716.75
7.2.240.0150.00316.73
7.2.230.0030.01616.87
7.2.220.0060.01516.78
7.2.210.0170.00316.84
7.2.200.0110.01116.78
7.2.190.0150.00516.66
7.2.180.0150.00416.90
7.2.170.0070.01116.83
7.2.160.0000.01816.71
7.2.150.0110.01116.79
7.2.140.0110.01416.85
7.2.130.0120.01216.80
7.2.120.0200.00416.88
7.2.110.0150.00916.88
7.2.100.0120.00916.88
7.2.90.0090.00916.86
7.2.80.0140.01116.86
7.2.70.0150.00916.97
7.2.60.0120.00816.74
7.2.50.0170.01116.72
7.2.40.0140.00316.91
7.2.30.0160.01016.95
7.2.20.0110.01216.80
7.2.10.0220.00616.76
7.2.00.0140.00716.82

preferences:
40.22 ms | 403 KiB | 5 Q