3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<TEXT [Beginning] ABC [Ending] [Beginning] DEF [Ending] [Beginning] GHI [Ending] [Beginning] JKL [Ending] [Beginning] MNO [Ending] TEXT; preg_match_all('/^' . preg_quote('[Beginning]') . '[\r\n]+(.*)[\r\n]+' . preg_quote('[Ending]') . '$/m', $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.3.60.0150.00616.75
8.3.50.0070.00718.18
8.3.40.0110.01119.05
8.3.30.0090.00618.93
8.3.20.0000.00720.23
8.3.10.0080.00021.79
8.3.00.0000.00819.63
8.2.180.0110.00716.88
8.2.170.0110.00422.96
8.2.160.0110.00319.41
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00722.20
8.2.120.0040.00426.35
8.2.110.0050.00522.22
8.2.100.0030.00817.91
8.2.90.0000.00819.20
8.2.80.0050.00318.04
8.2.70.0000.01017.75
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0050.00318.22
8.2.30.0060.00318.23
8.2.20.0000.00718.25
8.2.10.0070.00018.35
8.2.00.0000.00718.33
8.1.280.0150.00625.92
8.1.270.0030.00523.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0090.00319.10
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00517.48
8.1.190.0000.00817.52
8.1.180.0060.00318.10
8.1.170.0070.00320.41
8.1.160.0050.00319.00
8.1.150.0030.00620.07
8.1.140.0040.00419.61
8.1.130.0000.00719.06
8.1.120.0040.00417.68
8.1.110.0000.00817.65
8.1.100.0040.00417.67
8.1.90.0070.00017.60
8.1.80.0030.00417.63
8.1.70.0060.00317.59
8.1.60.0040.00417.67
8.1.50.0040.00417.58
8.1.40.0000.00917.59
8.1.30.0000.00817.81
8.1.20.0040.00417.79
8.1.10.0000.00817.69
8.1.00.0030.00617.51
8.0.300.0020.00518.77
8.0.290.0000.00817.16
8.0.280.0050.00318.41
8.0.270.0030.00617.36
8.0.260.0050.00218.99
8.0.250.0030.00317.19
8.0.240.0030.00517.24
8.0.230.0000.00717.07
8.0.220.0000.00717.10
8.0.210.0030.00417.13
8.0.200.0030.00317.07
8.0.190.0040.00717.21
8.0.180.0000.00817.13
8.0.170.0000.00717.17
8.0.160.0040.00417.20
8.0.150.0000.00717.15
8.0.140.0000.00816.99
8.0.130.0030.00313.52
8.0.120.0060.00317.20
8.0.110.0040.00416.99
8.0.100.0050.00217.23
8.0.90.0000.00817.09
8.0.80.0150.00317.25
8.0.70.0000.00717.04
8.0.60.0080.00017.14
8.0.50.0000.00817.05
8.0.30.0100.00917.33
8.0.20.0120.00917.43
8.0.10.0000.00817.27
8.0.00.0090.01316.83
7.4.330.0000.00515.55
7.4.320.0000.00716.80
7.4.300.0000.00916.75
7.4.290.0000.00716.72
7.4.280.0000.00816.88
7.4.270.0000.00716.88
7.4.260.0000.00816.79
7.4.250.0050.00216.88
7.4.240.0070.00016.79
7.4.230.0050.00316.68
7.4.220.0110.00716.80
7.4.210.0100.01016.95
7.4.200.0000.00816.86
7.4.160.0140.00516.82
7.4.150.0060.01317.40
7.4.140.0090.01217.86
7.4.130.0130.00616.74
7.4.120.0110.01116.72
7.4.110.0110.00816.70
7.4.100.0100.00716.79
7.4.90.0070.01016.76
7.4.80.0060.01119.39
7.4.70.0100.00716.77
7.4.60.0140.00716.77
7.4.50.0030.01216.90
7.4.40.0030.01316.84
7.4.30.0060.01516.75
7.4.00.0100.00415.03
7.3.330.0000.00513.15
7.3.320.0000.00513.27
7.3.310.0070.00016.30
7.3.300.0000.00716.41
7.3.290.0130.00016.46
7.3.280.0080.01016.43
7.3.270.0140.00317.40
7.3.260.0080.01016.63
7.3.240.0080.01216.60
7.3.230.0100.01016.53
7.3.210.0140.00316.35
7.3.200.0130.00416.72
7.3.190.0130.00616.42
7.3.180.0060.01016.47
7.3.170.0070.01116.38
7.3.160.0100.00716.82
7.2.330.0130.00616.71
7.2.320.0090.00916.75
7.2.310.0120.00616.70
7.2.300.0120.00616.65
7.2.290.0120.00616.65
7.2.60.0070.00716.72
7.1.200.0260.01015.64
7.1.70.0040.00417.27
7.1.60.0030.01017.51
7.1.40.0170.01534.52
7.1.30.0170.00734.47
7.1.20.0200.00734.63
7.1.10.0030.00716.64
7.1.00.0030.01016.70
7.0.200.0070.01017.02
7.0.180.0030.01316.20
7.0.170.0030.01016.25
7.0.160.0030.01316.30
7.0.150.0030.00716.29
7.0.140.0030.01016.41
7.0.130.0100.00716.59
7.0.120.0070.00716.66
7.0.110.0100.00316.39
7.0.100.0030.00716.36
7.0.90.0070.00716.39
7.0.80.0000.01016.54
7.0.70.0170.00016.37
7.0.60.0030.01016.15
7.0.50.0070.00316.45
7.0.40.0100.00316.50
7.0.30.0070.00316.68
7.0.20.0000.01016.44
7.0.10.0000.01016.43
7.0.00.0030.01016.39

preferences:
55.78 ms | 401 KiB | 5 Q