3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOD [a-1]****************** [b-2]********** [c-3]*** EOD; preg_match_all('/^\[([^\]]*+)](.*?)$/m' , $text, $matches, PREG_SET_ORDER); $result = array(); foreach ($matches as $match) { $result[$match[1]] = $match[2]; } var_dump($result);

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.0090.00618.43
8.3.50.0120.00821.09
8.3.40.0040.01119.14
8.3.30.0080.00818.92
8.3.20.0030.00619.02
8.3.10.0080.00020.92
8.3.00.0070.00321.85
8.2.180.0120.00316.48
8.2.170.0080.00822.96
8.2.160.0100.00720.58
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0090.00019.79
8.2.110.0080.00321.12
8.2.100.0110.00017.91
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00818.05
8.2.50.0080.00018.10
8.2.40.0000.00818.34
8.2.30.0000.00819.36
8.2.20.0000.00817.79
8.2.10.0000.00817.90
8.2.00.0040.00417.75
8.1.270.0000.00723.99
8.1.260.0190.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00623.86
8.1.230.0080.00317.77
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0030.00517.48
8.1.180.0060.00318.10
8.1.170.0030.00518.70
8.1.160.0050.00318.83
8.1.150.0080.00018.78
8.1.140.0000.00817.59
8.1.130.0000.00717.86
8.1.120.0000.01017.52
8.1.110.0060.00317.63
8.1.100.0000.00717.66
8.1.90.0030.00417.57
8.1.80.0040.00417.66
8.1.70.0000.00717.50
8.1.60.0040.00417.77
8.1.50.0040.00417.52
8.1.40.0000.00917.71
8.1.30.0070.00017.82
8.1.20.0040.00417.79
8.1.10.0000.00817.76
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0000.00716.88
8.0.280.0070.00018.42
8.0.270.0040.00417.28
8.0.260.0030.00317.03
8.0.250.0000.00717.11
8.0.240.0030.00517.11
8.0.230.0040.00417.17
8.0.220.0070.00016.97
8.0.210.0000.00717.13
8.0.200.0030.00317.13
8.0.190.0040.00417.08
8.0.180.0000.00717.08
8.0.170.0080.00017.18
8.0.160.0000.00817.09
8.0.150.0040.00417.05
8.0.140.0000.00816.96
8.0.130.0070.00013.54
8.0.120.0040.00416.98
8.0.110.0040.00416.97
8.0.100.0040.00417.02
8.0.90.0040.00417.15
8.0.80.0040.01217.08
8.0.70.0000.00717.09
8.0.60.0000.00816.97
8.0.50.0070.00016.91
8.0.30.0140.00517.16
8.0.20.0090.01117.44
8.0.10.0000.00717.25
8.0.00.0070.01117.00
7.4.330.0050.00015.05
7.4.320.0070.00016.68
7.4.300.0060.00016.77
7.4.290.0000.00816.86
7.4.280.0030.00316.72
7.4.270.0000.00716.70
7.4.260.0000.00613.48
7.4.250.0030.00516.73
7.4.240.0040.00416.75
7.4.230.0000.00816.64
7.4.220.0110.01116.76
7.4.210.0060.01116.86
7.4.200.0000.00716.89
7.4.190.0030.00316.91
7.4.160.0000.01816.76
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0120.00516.75
7.4.120.0100.00816.70
7.4.110.0060.00916.61
7.4.100.0060.01216.73
7.4.90.0070.01016.68
7.4.80.0080.00819.39
7.4.70.0110.00516.60
7.4.60.0100.00716.68
7.4.50.0040.00416.38
7.4.40.0030.01022.52
7.4.30.0090.00916.69
7.4.00.0030.01215.41
7.3.330.0030.00313.35
7.3.320.0050.00013.36
7.3.310.0030.00316.38
7.3.300.0030.00316.54
7.3.290.0090.00616.54
7.3.280.0040.01216.55
7.3.270.0070.01717.40
7.3.260.0130.00718.24
7.3.250.0100.00716.62
7.3.240.0110.00516.55
7.3.230.0080.00816.66
7.3.210.0060.01216.62
7.3.200.0090.01219.39
7.3.190.0140.00416.48
7.3.180.0030.01316.51
7.3.170.0120.00916.84
7.3.160.0030.01316.61
7.3.120.0070.00414.80
7.3.10.0100.00316.39
7.3.00.0030.01216.59
7.2.330.0150.00316.76
7.2.320.0090.00916.85
7.2.310.0110.00716.91
7.2.300.0100.00716.60
7.2.290.0090.01116.68
7.2.130.0070.00716.89
7.2.120.0120.00416.99
7.2.110.0040.00816.88
7.2.100.0060.01216.87
7.2.90.0120.01216.94
7.2.80.0090.00916.79
7.2.70.0040.01117.21
7.2.60.0130.00316.96
7.2.50.0000.01716.87
7.2.40.0030.01216.86
7.2.30.0030.00916.95
7.2.20.0060.01016.72
7.2.10.0050.00516.92
7.2.00.0040.00918.22
7.1.250.0080.00815.68
7.1.100.0040.00818.53
7.1.70.0000.01217.42
7.1.60.0160.00719.40
7.1.50.0180.00716.93
7.1.00.0030.05722.42
7.0.200.0000.00816.67
7.0.140.0170.06322.00
7.0.90.0000.08719.86
7.0.80.0100.08020.13
7.0.70.0570.07320.04
7.0.60.0330.06719.98
7.0.50.0630.07720.16
7.0.40.0030.05020.02
7.0.30.0070.04320.18
7.0.20.0130.08020.15
7.0.10.0070.06720.04
7.0.00.0030.06320.13
5.6.230.0070.09020.60
5.6.220.0000.05320.70
5.6.210.0030.07320.43
5.6.200.0170.06321.04
5.6.190.0070.05021.13
5.6.180.0170.07321.05
5.6.170.0070.07320.96
5.6.160.0170.05720.93
5.6.150.0100.07321.04
5.6.140.0030.08721.03
5.6.130.0070.09021.08
5.6.120.0130.04021.13
5.6.110.0130.08720.93
5.6.100.0070.05720.93
5.6.90.0100.08021.05
5.6.80.0030.08020.44
5.6.70.0170.05020.43
5.6.60.0170.07320.53
5.6.50.0070.05720.45
5.6.40.0000.08320.49
5.6.30.0030.08020.46
5.6.20.0070.08320.41
5.6.10.0070.08320.46
5.6.00.0170.07720.34
5.5.370.0100.07720.41
5.5.360.0100.08320.53
5.5.350.0070.08020.41
5.5.340.0070.05720.88
5.5.330.0030.05020.94
5.5.320.0000.08720.80
5.5.310.0030.08720.89
5.5.300.0100.07020.92
5.5.290.0100.07720.92
5.5.280.0100.07720.79
5.5.270.0100.07720.88
5.5.260.0030.06320.88
5.5.250.0070.08020.56
5.5.240.0170.06720.18
5.5.230.0200.05320.26
5.5.220.0100.06320.30
5.5.210.0070.04720.11
5.5.200.0100.06720.15
5.5.190.0070.07320.15
5.5.180.0170.06720.27
5.5.160.0200.06719.99
5.5.150.0070.07720.21
5.5.140.0070.06720.26
5.5.130.0070.04720.15
5.5.120.0070.07720.07
5.5.110.0070.08020.26
5.5.100.0070.04320.13
5.5.90.0170.07020.10
5.5.80.0100.05720.04
5.5.70.0130.07720.05
5.5.60.0100.07720.14
5.5.50.0070.04720.15
5.5.40.0000.07320.07
5.5.30.0070.08019.89
5.5.20.0070.05320.13
5.5.10.0100.08020.07
5.5.00.0070.08020.06
5.4.450.0000.09019.38
5.4.440.0000.06019.36
5.4.430.0130.05019.36
5.4.420.0030.05719.38
5.4.410.0030.06019.34
5.4.400.0030.05318.89
5.4.390.0170.07019.03
5.4.380.0130.07019.02
5.4.370.0070.07718.78
5.4.360.0030.06018.79
5.4.350.0030.05719.07
5.4.340.0100.04718.98
5.4.320.0030.07319.05
5.4.310.0170.06319.23
5.4.300.0100.06718.89
5.4.290.0130.06718.97
5.4.280.0070.07719.07
5.4.270.0070.08019.04
5.4.260.0130.06319.04
5.4.250.0170.06719.02
5.4.240.0100.07019.22
5.4.230.0130.05718.78
5.4.220.0070.08019.14
5.4.210.0000.06719.11
5.4.200.0030.04718.94
5.4.190.0070.08018.97
5.4.180.0100.07319.06
5.4.170.0000.05019.04
5.4.160.0030.06718.93
5.4.150.0030.06019.00
5.4.140.0130.06316.36
5.4.130.0070.07316.34
5.4.120.0130.07016.35
5.4.110.0130.06316.43
5.4.100.0070.07316.22
5.4.90.0070.05016.30
5.4.80.0030.07316.24
5.4.70.0130.05016.22
5.4.60.0100.06316.23
5.4.50.0030.07716.29
5.4.40.0070.07716.43
5.4.30.0070.07316.28
5.4.20.0070.06016.38
5.4.10.0070.07016.31
5.4.00.0070.07015.72
5.3.290.0130.07314.62
5.3.280.0100.08014.50
5.3.270.0030.05714.55
5.3.260.0200.06714.58
5.3.250.0100.07714.46
5.3.240.0030.07714.61
5.3.230.0070.08014.43
5.3.220.0100.07014.47
5.3.210.0070.05014.56
5.3.200.0000.08014.38
5.3.190.0100.07314.55
5.3.180.0030.05714.52
5.3.170.0030.08014.54
5.3.160.0130.07014.47
5.3.150.0030.06014.41
5.3.140.0130.07014.57
5.3.130.0000.08314.54
5.3.120.0070.07714.49
5.3.110.0000.08314.38
5.3.100.0030.08314.02
5.3.90.0070.07013.97
5.3.80.0030.08014.01
5.3.70.0070.07314.03
5.3.60.0030.05013.86
5.3.50.0070.05713.93
5.3.40.0030.08013.90
5.3.30.0000.07713.86
5.3.20.0100.07013.62
5.3.10.0070.05313.62
5.3.00.0130.04013.63
5.2.170.0100.03013.62
5.2.160.0100.06313.62
5.2.150.0070.04713.62
5.2.140.0030.05313.62
5.2.130.0070.05313.62
5.2.120.0230.04713.62
5.2.110.0070.03713.62
5.2.100.0100.04713.62
5.2.90.0170.05013.62
5.2.80.0100.05313.62
5.2.70.0130.04713.62
5.2.60.0070.06013.62
5.2.50.0000.04013.62
5.2.40.0030.05713.62
5.2.30.0000.06013.62
5.2.20.0130.03313.62
5.2.10.0070.05713.62
5.2.00.0030.04313.62
5.1.60.0030.05313.62
5.1.50.0130.04313.62
5.1.40.0030.04313.62
5.1.30.0000.05713.62
5.1.20.0100.05313.62
5.1.10.0070.04313.62
5.1.00.0000.05713.62
5.0.50.0070.03313.62
5.0.40.0000.04313.62
5.0.30.0070.04713.62
5.0.20.0000.03013.62
5.0.10.0030.03713.62
5.0.00.0000.06713.62
4.4.90.0000.02313.62
4.4.80.0100.02713.62
4.4.70.0000.03713.62
4.4.60.0000.02313.62
4.4.50.0030.03713.62
4.4.40.0030.03313.62
4.4.30.0000.03713.62
4.4.20.0070.02313.62
4.4.10.0030.03713.62
4.4.00.0170.03713.62
4.3.110.0030.03713.62
4.3.100.0000.02313.62
4.3.90.0000.03713.62
4.3.80.0070.04313.62
4.3.70.0030.03713.62
4.3.60.0030.03713.62
4.3.50.0030.03713.62
4.3.40.0030.04713.62
4.3.30.0000.03013.62
4.3.20.0070.03313.62
4.3.10.0030.02713.62
4.3.00.0000.03713.62

preferences:
65.74 ms | 400 KiB | 5 Q