3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '[This] is a [test] string, [eat] my [shorts].'; preg_match_all("/\[[^\]]*\]/", $text, $matches); var_dump($matches[0]); $text = '[This] is a [test] string, [eat] my [shorts].'; preg_match_all("/\[([^\]]*)\]/", $text, $matches); var_dump($matches[1]);

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.0150.00618.18
8.3.50.0070.01016.45
8.3.40.0040.01118.71
8.3.30.0040.01118.83
8.3.20.0050.00319.02
8.3.10.0040.00421.73
8.3.00.0040.00421.00
8.2.180.0070.01118.41
8.2.170.0140.00422.96
8.2.160.0070.00720.48
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00422.38
8.2.120.0000.00726.35
8.2.110.0000.00921.16
8.2.100.0130.00018.03
8.2.90.0000.00819.23
8.2.80.0000.00918.04
8.2.70.0060.00317.75
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0050.00322.44
8.2.30.0040.00420.94
8.2.20.0030.00518.11
8.2.10.0040.00417.93
8.2.00.0040.00417.94
8.1.280.0110.01125.92
8.1.270.0000.00822.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.37
8.1.230.0090.00317.64
8.1.220.0050.00517.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0050.00318.78
8.1.160.0040.00419.04
8.1.150.0000.00720.69
8.1.140.0000.00819.45
8.1.130.0030.00318.86
8.1.120.0070.00017.58
8.1.110.0070.00017.57
8.1.100.0000.00717.43
8.1.90.0030.00617.56
8.1.80.0000.00717.56
8.1.70.0030.00317.48
8.1.60.0090.00317.60
8.1.50.0070.00017.57
8.1.40.0040.00817.59
8.1.30.0050.00317.71
8.1.20.0030.00617.72
8.1.10.0040.00417.63
8.1.00.0000.01117.66
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.32
8.0.270.0000.00717.13
8.0.260.0000.00716.92
8.0.250.0030.00517.02
8.0.240.0060.00316.95
8.0.230.0030.00317.02
8.0.220.0000.00716.96
8.0.210.0000.00716.93
8.0.200.0080.00317.00
8.0.190.0040.00416.91
8.0.180.0070.00317.00
8.0.170.0040.00416.90
8.0.160.0040.00416.95
8.0.150.0080.00016.94
8.0.140.0040.00416.92
8.0.130.0030.00313.47
8.0.120.0000.00716.98
8.0.110.0050.00216.83
8.0.100.0000.00716.95
8.0.90.0000.00716.97
8.0.80.0090.00916.93
8.0.70.0000.00716.84
8.0.60.0050.00217.02
8.0.50.0030.00516.96
8.0.30.0120.00616.98
8.0.20.0080.01117.40
8.0.10.0000.00816.97
8.0.00.0090.00917.14
7.4.330.0000.00615.55
7.4.320.0030.00316.66
7.4.300.0000.00716.74
7.4.290.0040.00416.67
7.4.280.0040.00416.55
7.4.270.0070.00016.63
7.4.260.0030.00313.46
7.4.250.0000.00816.69
7.4.240.0050.00216.64
7.4.230.0000.00716.56
7.4.220.0120.00616.81
7.4.210.0110.00416.72
7.4.200.0000.00716.86
7.4.160.0120.00516.55
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0130.00716.70
7.4.120.0080.01016.68
7.4.110.0070.01016.71
7.4.100.0100.01016.66
7.4.90.0060.01316.68
7.4.80.0090.00919.39
7.4.70.0050.01116.54
7.4.60.0130.00316.61
7.4.50.0040.01416.53
7.4.40.0110.00716.42
7.4.30.0080.00916.45
7.4.00.0100.00715.13
7.3.330.0000.00813.20
7.3.320.0050.00013.26
7.3.310.0000.00716.29
7.3.300.0060.00016.31
7.3.290.0110.00316.39
7.3.280.0090.00816.36
7.3.270.0030.01317.40
7.3.260.0140.00916.69
7.3.250.0110.00816.50
7.3.240.0100.00716.53
7.3.230.0080.00816.39
7.3.210.0110.00616.69
7.3.200.0140.00316.64
7.3.190.0100.00716.59
7.3.180.0130.00316.67
7.3.170.0000.01616.37
7.3.160.0100.00716.34
7.3.10.0130.00017.01
7.3.00.0030.00916.89
7.2.330.0090.00916.77
7.2.320.0080.00816.73
7.2.310.0060.01516.73
7.2.300.0170.00716.57
7.2.290.0080.00816.50
7.2.130.0060.00916.99
7.2.120.0080.00817.01
7.2.110.0060.00616.94
7.2.100.0130.00317.03
7.2.90.0070.00716.89
7.2.80.0060.00916.92
7.2.70.0080.00416.79
7.2.60.0070.00717.02
7.2.50.0080.00416.74
7.2.40.0070.00416.70
7.2.30.0030.01016.66
7.2.20.0090.00617.12
7.2.10.0090.00616.90
7.2.00.0090.00618.28
7.1.250.0130.00016.21
7.1.200.0060.00615.89
7.1.100.0120.00318.54
7.1.70.0000.00717.20
7.1.60.0170.00733.45
7.1.50.1730.00333.02
7.1.40.0230.00332.68
7.1.30.0700.00732.87
7.1.20.0200.01032.94
7.1.10.0070.00714.98
7.1.00.0030.01015.00
7.0.200.1670.00714.90
7.0.190.0000.01314.96
7.0.180.0030.01014.63
7.0.170.0000.01014.71
7.0.160.1970.01014.64
7.0.150.0070.00714.52
7.0.140.0170.00714.57
7.0.130.2200.01014.90
7.0.120.0800.01014.75
7.0.110.0030.00714.90
7.0.100.0070.00314.60
7.0.90.2600.01014.47
7.0.80.0070.00714.67
7.0.70.0070.01014.76
7.0.60.1530.00714.51
7.0.50.0030.00714.81
7.0.40.1570.00714.94
7.0.30.0170.00314.75
7.0.20.0130.01014.92
7.0.10.1430.00714.62
7.0.00.1370.00714.51

preferences:
58.13 ms | 400 KiB | 5 Q