3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^#%META((?>\R(?!#%(?:META|ENDS)$).*)+)\R#%ENDS$/m'; $str = '#%META # date: 2022-08-27 # generated-by: Me # id: 1 #%ENDS #%BODY .... #%ENDS #%META # date: 2022-08-27 # generated-by: Another Me # id: 2 #%ENDS #%BODY .... #%ENDS'; if (preg_match_all($re, $str, $matches)) { $result = array_map(function ($s) { return preg_replace("/^#\h*/m", "", trim($s)); }, $matches[1]); var_export($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.70.0110.00716.75
8.3.60.0040.01118.55
8.3.50.0100.00718.38
8.3.40.0110.00420.43
8.3.30.0130.00318.84
8.3.20.0090.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.190.0110.01116.75
8.2.180.0090.00625.92
8.2.170.0130.00619.08
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.92
8.2.110.0060.00320.52
8.2.100.0090.00317.84
8.2.90.0060.00617.88
8.2.80.0000.00818.91
8.2.70.0030.00617.88
8.2.60.0000.00818.05
8.2.50.0000.00818.05
8.2.40.0030.00620.13
8.2.30.0070.00018.22
8.2.20.0070.00019.25
8.2.10.0000.00818.15
8.2.00.0040.00419.31
8.1.280.0140.00025.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.80
8.1.230.0100.00317.76
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.47
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0000.00718.98
8.1.150.0040.00418.72
8.1.140.0030.00617.56
8.1.130.0000.00718.94
8.1.120.0040.00417.59
8.1.110.0050.00317.51
8.1.100.0050.00217.63
8.1.90.0090.00917.54
8.1.80.0110.00617.59
8.1.70.0110.00617.48
8.1.60.0150.00517.68
8.1.50.0150.00417.71
8.1.40.0190.00017.70
8.1.30.0050.01417.87
8.1.20.0120.00617.82
8.1.10.0060.01217.76
8.1.00.0190.00017.52
8.0.300.0060.00318.77
8.0.290.0060.00316.63
8.0.280.0000.00718.41
8.0.270.0000.00817.03
8.0.260.0000.00818.30
8.0.250.0030.00317.10
8.0.240.0050.00217.07
8.0.230.0060.00316.96
8.0.220.0170.00017.01
8.0.210.0090.00717.00
8.0.200.0150.00017.06
8.0.190.0070.00717.03
8.0.180.0160.00017.02
8.0.170.0110.00417.05
8.0.160.0170.00016.91
8.0.150.0130.00316.92
8.0.140.0090.00617.00
8.0.130.0120.00417.08
8.0.120.0090.00616.89
8.0.110.0150.00016.86
8.0.100.0080.00816.94
8.0.90.0040.01216.87
8.0.80.0080.00717.05
8.0.70.0110.00517.09
8.0.60.0130.00316.98
8.0.50.0110.00417.06
8.0.30.0120.00416.93
8.0.20.0120.00317.02
8.0.10.0110.00517.13
7.4.330.0000.00515.55
7.4.320.0030.00316.75
7.4.300.0080.00816.77
7.4.290.0100.00716.87
7.4.280.0130.00416.68
7.4.270.0150.00316.71
7.4.260.0180.00016.80
7.4.250.0130.00416.63
7.4.240.0140.00316.62
7.4.230.0170.00016.64
7.4.220.0110.00416.71
7.4.210.0050.01016.76
7.4.200.0130.00216.67
7.4.190.0160.00016.64
7.4.180.0060.00916.85
7.4.160.0110.00416.69
7.4.150.0090.00616.81
7.4.140.0000.01516.69
7.4.130.0070.00716.73
7.4.120.0130.00416.86
7.4.110.0110.00416.61
7.4.100.0110.00416.94
7.4.90.0130.00216.63
7.4.80.0100.00616.66
7.4.70.0070.00716.63
7.4.60.0070.00716.70
7.4.50.0040.01116.57
7.4.40.0080.00816.65
7.4.30.0150.00016.64
7.4.20.0080.00816.47
7.4.10.0160.00016.70
7.4.00.0030.01116.66

preferences:
54.7 ms | 402 KiB | 5 Q