3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/\[\s*([^][|]*?)\s*\|\s*([^][]*?)\s*]/m'; $str = 'RE: Reply to me [Quote #341 | some-site]'; if (preg_match($re, $str, $match)) { array_shift($match); print_r($match); }

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.4.120.0080.01120.64
8.4.110.0120.00920.75
8.4.100.0130.00718.82
8.4.90.0110.00920.76
8.4.80.0050.00418.59
8.4.70.0080.00117.80
8.4.60.0050.00518.88
8.4.50.0110.01119.36
8.4.40.0160.00317.72
8.4.30.0000.01920.49
8.4.20.0160.00017.95
8.4.10.0060.00317.96
8.3.250.0100.00916.99
8.3.240.0100.00316.72
8.3.230.0060.00416.63
8.3.220.0040.00418.76
8.3.210.0070.00218.57
8.3.200.0050.00316.61
8.3.190.0120.00617.29
8.3.180.0130.00816.39
8.3.170.0110.00718.84
8.3.160.0040.00416.63
8.3.150.0070.01416.80
8.3.140.0030.00616.69
8.3.130.0060.00318.65
8.3.120.0030.00618.95
8.3.110.0080.00020.94
8.3.100.0160.00324.06
8.3.90.0050.00326.77
8.3.80.0000.01020.38
8.3.70.0120.00316.63
8.3.60.0140.00418.30
8.3.50.0070.01518.24
8.3.40.0000.01518.79
8.3.30.0100.00618.70
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.290.0090.00722.29
8.2.280.0070.00318.65
8.2.270.0100.01016.95
8.2.260.0040.00420.41
8.2.250.0060.00316.71
8.2.240.0090.00018.96
8.2.230.0090.00922.58
8.2.220.0130.00737.54
8.2.210.0160.00326.77
8.2.200.0040.00416.88
8.2.190.0170.00316.58
8.2.180.0040.01125.92
8.2.170.0140.00018.95
8.2.160.0120.00322.96
8.2.150.0000.00725.66
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0050.00326.16
8.2.110.0070.00319.18
8.2.100.0090.00317.84
8.2.90.0070.00317.72
8.2.80.0000.00819.06
8.2.70.0000.00817.91
8.2.60.0040.00417.80
8.2.50.0030.00518.10
8.2.40.0060.00320.42
8.2.30.0040.00417.96
8.2.20.0080.00020.64
8.2.10.0040.00417.76
8.2.00.0040.00419.26
8.1.330.0120.00822.00
8.1.320.0120.00716.28
8.1.310.0040.00418.64
8.1.300.0030.00618.11
8.1.290.0060.00618.88
8.1.280.0090.00625.92
8.1.270.0080.00323.99
8.1.260.0050.00326.35
8.1.250.0000.01028.09
8.1.240.0130.00722.13
8.1.230.0110.00020.98
8.1.220.0050.00317.76
8.1.210.0000.00918.77
8.1.200.0060.00317.25
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0070.00018.72
8.1.150.0050.00218.72
8.1.140.0040.00417.46
8.1.130.0030.00318.86
8.1.120.0000.00817.57
8.1.110.0000.00717.53
8.1.100.0030.00517.53
8.1.90.0000.00717.51
8.1.80.0000.00717.43
8.1.70.0040.00417.47
8.1.60.0000.00817.65
8.1.50.0050.00317.58
8.1.40.0080.00017.49
8.1.30.0030.00517.59
8.1.20.0070.00017.75
8.1.10.0040.00417.69
8.1.00.0000.00817.60
8.0.300.0000.00820.09
8.0.290.0000.00816.88
8.0.280.0000.00818.34
8.0.270.0040.00418.04
8.0.260.0050.00318.40
8.0.250.0030.00317.09
8.0.240.0000.00717.02
8.0.230.0000.00717.05
8.0.220.0030.00516.86
8.0.210.0000.00716.87
8.0.200.0030.00316.96
8.0.190.0100.00016.96
8.0.180.0040.00417.01
8.0.170.0030.00616.93
8.0.160.0000.00816.90
8.0.150.0070.00016.92
8.0.140.0000.00816.95
8.0.130.0120.00016.95
8.0.120.0170.00316.88
8.0.110.0160.00316.96
8.0.100.0160.00316.93
8.0.90.0060.01216.88
8.0.80.0110.00816.93
8.0.70.0160.00316.75
8.0.60.0130.00616.83
8.0.50.0150.00417.03
8.0.30.0140.00516.92
8.0.20.0130.00617.01
8.0.10.0100.01017.00
8.0.00.0090.00317.10
7.4.330.0030.00315.55
7.4.320.0070.00016.75
7.4.300.0060.00016.80
7.4.290.0080.00016.58
7.4.280.0000.00716.68
7.4.270.0070.00016.55
7.4.260.0090.01316.77
7.4.250.0180.00316.61
7.4.240.0180.00316.65
7.4.230.0180.00416.72
7.4.220.0170.00316.78
7.4.210.0120.00616.71
7.4.200.0150.00316.70
7.4.190.0190.00016.61
7.4.180.0120.00616.69
7.4.160.0120.00616.68
7.4.150.0170.00316.74
7.4.140.0120.00616.63
7.4.130.0120.00816.64
7.4.120.0150.00316.65
7.4.110.0060.01216.64
7.4.100.0150.00316.79
7.4.90.0140.00416.75
7.4.80.0140.00616.46
7.4.70.0120.00616.59
7.4.60.0150.00216.73
7.4.50.0150.00316.50
7.4.40.0140.00416.53
7.4.30.0120.00616.46
7.4.20.0120.00616.32
7.4.10.0140.00316.61
7.4.00.0190.00016.43
7.3.330.0130.00316.18
7.3.320.0060.01116.10
7.3.310.0170.00316.30
7.3.300.0170.00016.27
7.3.290.0150.00416.12
7.3.280.0060.00916.07
7.3.270.0110.00316.34
7.3.260.0070.00816.35
7.3.250.0110.00316.04
7.3.240.0090.00416.29
7.3.230.0080.00416.34
7.3.220.0150.00016.33
7.3.210.0140.00216.18
7.3.200.0130.00416.14
7.3.190.0170.00316.35
7.3.180.0130.00716.26
7.3.170.0130.00616.04
7.3.160.0100.00716.32
7.3.150.0040.00916.28
7.3.140.0130.00316.15
7.3.130.0120.00816.18
7.3.120.0170.00216.20
7.3.110.0050.01116.21
7.3.100.0120.00815.98
7.3.90.0090.00316.45
7.3.80.0150.00416.41
7.3.70.0170.00316.40
7.3.60.0140.00416.22
7.3.50.0130.00316.41
7.3.40.0140.00516.19
7.3.30.0120.00616.37
7.3.20.0200.00018.18
7.3.10.0140.00018.09
7.3.00.0120.00318.17

preferences:
28.6 ms | 403 KiB | 5 Q