3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "[text] (more text) (text...) [text!] (last text)"; preg_match_all('/[\[\(](.*?)[\]\)]/', $text, $matches, PREG_SET_ORDER, 0); $texts = array_column($matches, 1); var_dump($texts);

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.0070.00716.63
8.3.50.0140.00016.55
8.3.40.0140.00418.96
8.3.30.0080.00818.84
8.3.20.0040.00420.21
8.3.10.0080.00021.90
8.3.00.0060.00617.66
8.2.180.0130.00618.66
8.2.170.0140.00422.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0040.00420.96
8.2.110.0090.00022.43
8.2.100.0070.00417.84
8.2.90.0030.00619.27
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.92
8.2.50.0030.00518.10
8.2.40.0050.00320.34
8.2.30.0040.00421.02
8.2.20.0000.00718.09
8.2.10.0050.00218.16
8.2.00.0000.00818.23
8.1.280.0140.00725.92
8.1.270.0000.00723.91
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0100.00023.97
8.1.230.0060.00617.77
8.1.220.0060.00317.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0060.00317.38
8.1.180.0070.00018.10
8.1.170.0000.00818.65
8.1.160.0040.00419.11
8.1.150.0040.00420.70
8.1.140.0040.00419.46
8.1.130.0030.00318.96
8.1.120.0000.00717.57
8.1.110.0030.00617.60
8.1.100.0040.00417.53
8.1.90.0000.00717.51
8.1.80.0040.00417.56
8.1.70.0030.00517.60
8.1.60.0050.00317.56
8.1.50.0070.00017.51
8.1.40.0040.00417.60
8.1.30.0040.00417.60
8.1.20.0030.00817.76
8.1.10.0000.00817.56
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0040.00418.34
8.0.270.0000.00717.20
8.0.260.0000.00616.89
8.0.250.0040.00416.96
8.0.240.0030.00317.03
8.0.230.0030.00517.07
8.0.220.0000.00717.00
8.0.210.0040.00416.99
8.0.200.0030.00317.03
8.0.190.0070.00317.01
8.0.180.0070.00016.83
8.0.170.0030.00516.98
8.0.160.0030.00617.02
8.0.150.0040.00416.94
8.0.140.0000.00716.80
8.0.130.0000.00613.36
8.0.120.0050.00217.03
8.0.110.0040.00417.00
8.0.100.0030.00316.99
8.0.90.0000.00717.09
8.0.80.0030.01217.08
8.0.70.0040.00416.93
8.0.60.0040.00416.96
8.0.50.0030.00516.86
8.0.30.0100.00917.27
8.0.20.0110.00817.40
8.0.10.0070.00017.10
8.0.00.0150.00416.65
7.4.330.0000.00515.55
7.4.320.0000.00616.80
7.4.300.0000.00616.73
7.4.290.0030.00616.80
7.4.280.0000.00716.84
7.4.270.0030.00316.86
7.4.260.0000.00713.45
7.4.250.0030.00516.67
7.4.240.0050.00216.70
7.4.230.0030.00316.82
7.4.220.0120.01516.82
7.4.210.0100.00316.84
7.4.200.0040.00416.81
7.4.160.0070.00916.49
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0150.00916.63
7.4.120.0080.00916.64
7.4.110.0160.00716.62
7.4.100.0110.00916.59
7.4.90.0060.01216.77
7.4.80.0080.01519.39
7.4.70.0100.01016.68
7.4.60.0060.00916.46
7.4.50.0090.00616.71
7.4.40.0030.01316.51
7.4.30.0140.00716.70
7.4.00.0030.01215.14
7.3.330.0020.00213.19
7.3.320.0030.00313.09
7.3.310.0000.00716.41
7.3.300.0030.00316.30
7.3.290.0080.00816.30
7.3.280.0060.00916.29
7.3.270.0140.00317.40
7.3.260.0090.00916.48
7.3.250.0110.00916.53
7.3.240.0100.00716.51
7.3.230.0100.00616.38
7.3.210.0100.00716.64
7.3.200.0140.00316.60
7.3.190.0020.01516.30
7.3.180.0130.00316.32
7.3.170.0120.00316.48
7.3.160.0110.00616.63
7.2.330.0120.00616.64
7.2.320.0070.01316.63
7.2.310.0100.00716.68
7.2.300.0170.00016.79
7.2.290.0070.01016.81
7.2.60.0070.00716.88
7.2.00.0070.00719.59
7.1.200.0080.00015.97
7.1.100.0030.00618.16
7.1.70.0100.00517.36
7.1.60.0160.01935.17
7.1.50.0200.01034.63
7.1.40.0200.01034.71
7.1.30.0210.00934.53
7.1.20.0200.01034.94
7.1.10.0080.00516.68
7.1.00.0040.01116.75
7.0.200.0080.00516.58
7.0.190.0070.01116.71
7.0.180.0080.00816.50
7.0.170.0070.00716.40
7.0.160.0060.00616.34
7.0.150.0070.00716.36
7.0.140.0080.00516.50
7.0.130.0030.01016.73
7.0.120.0030.01016.38
7.0.110.0000.01516.54
7.0.100.0030.01016.38
7.0.90.0080.00416.52
7.0.80.0040.00816.37
7.0.70.0060.00916.35
7.0.60.0000.01316.17
7.0.50.0030.01216.46
7.0.40.0040.01116.38
7.0.30.0070.00716.75
7.0.20.0060.00916.59
7.0.10.0000.01316.45
7.0.00.0060.00616.44

preferences:
38.12 ms | 401 KiB | 5 Q