3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'e |a\\|b\\\\|c\\\\\\|d\\'; preg_match_all('/(?:[^\x5c\|]|\x5c(?:.|$))+/', $str, $matches); var_dump($str, $matches[0]); $result = preg_split('/(?<!\x5c)(?:\x5c.)*\K\|/s', $str); var_dump($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.00718.55
8.3.60.0160.00618.55
8.3.50.0180.00017.31
8.3.40.0090.01218.76
8.3.30.0090.00618.91
8.3.20.0040.00419.02
8.3.10.0040.00421.97
8.3.00.0040.00419.72
8.2.190.0160.00618.53
8.2.180.0090.00616.88
8.2.170.0110.00422.96
8.2.160.0140.00020.39
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.79
8.2.110.0030.00621.14
8.2.100.0070.00420.41
8.2.90.0030.00719.38
8.2.80.0030.00518.03
8.2.70.0080.00017.93
8.2.60.0040.00418.22
8.2.50.0030.00718.10
8.2.40.0000.00822.40
8.2.30.0000.00821.00
8.2.20.0000.00817.96
8.2.10.0000.00717.98
8.2.00.0070.00017.98
8.1.280.0040.01125.92
8.1.270.0050.00222.14
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0040.00819.09
8.1.220.0040.00417.75
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0050.00318.70
8.1.160.0070.00018.94
8.1.150.0060.00318.88
8.1.140.0000.00719.41
8.1.130.0070.00018.80
8.1.120.0000.00817.57
8.1.110.0040.00417.46
8.1.100.0040.00417.56
8.1.90.0060.00317.55
8.1.80.0000.00717.53
8.1.70.0040.00417.54
8.1.60.0080.00017.55
8.1.50.0040.00417.56
8.1.40.0090.00317.49
8.1.30.0050.00317.63
8.1.20.0000.00817.64
8.1.10.0040.00417.77
8.1.00.0030.00617.55
8.0.300.0060.00319.57
8.0.290.0000.00816.88
8.0.280.0000.00718.40
8.0.270.0000.00717.14
8.0.260.0030.00716.82
8.0.250.0030.00317.05
8.0.240.0030.00617.01
8.0.230.0040.00417.09
8.0.220.0000.00716.97
8.0.210.0030.00316.93
8.0.200.0030.00317.04
8.0.190.0030.00616.97
8.0.180.0040.00416.99
8.0.170.0040.00416.93
8.0.160.0050.00316.93
8.0.150.0070.00016.83
8.0.140.0040.00416.80
8.0.130.0050.00013.40
8.0.120.0030.00516.91
8.0.110.0000.00717.01
8.0.100.0050.00216.98
8.0.90.0000.00717.04
8.0.80.0110.00516.92
8.0.70.0050.00216.79
8.0.60.0000.00716.85
8.0.50.0000.00816.86
8.0.30.0100.01017.29
8.0.20.0110.01017.44
8.0.10.0000.00717.16
8.0.00.0080.00916.98
7.4.330.0000.00415.55
7.4.320.0040.00416.79
7.4.300.0000.00716.64
7.4.290.0050.00516.66
7.4.280.0040.00416.66
7.4.270.0030.00516.70
7.4.260.0070.00013.40
7.4.250.0020.00516.70
7.4.240.0030.00316.57
7.4.230.0050.00316.64
7.4.220.0090.00916.56
7.4.210.0140.00516.86
7.4.200.0040.00416.77
7.4.160.0090.00716.60
7.4.150.0110.00817.40
7.4.140.0080.01217.86
7.4.130.0150.00616.59
7.4.120.0100.01116.62
7.4.110.0100.01416.81
7.4.100.0130.00516.50
7.4.90.0110.00716.58
7.4.80.0070.01419.39
7.4.70.0000.01816.54
7.4.60.0070.01516.71
7.4.50.0090.00616.33
7.4.40.0100.01316.44
7.4.30.0090.01316.73
7.4.00.0030.01015.22
7.3.330.0050.00313.15
7.3.320.0030.00313.32
7.3.310.0040.00416.42
7.3.300.0030.00316.33
7.3.290.0000.00716.34
7.3.280.0080.01016.37
7.3.270.0070.01017.40
7.3.260.0150.00316.49
7.3.250.0110.00716.46
7.3.240.0120.00716.66
7.3.230.0120.00616.64
7.3.210.0100.01016.30
7.3.200.0120.00916.32
7.3.190.0120.00916.62
7.3.180.0130.00616.39
7.3.170.0100.01016.35
7.3.160.0150.00416.41
7.2.330.0100.00716.67
7.2.320.0120.00616.56
7.2.310.0150.00616.75
7.2.300.0090.00816.56
7.2.290.0130.01016.63
7.2.60.0090.00617.19
7.2.00.0030.01219.44
7.1.200.0040.00715.72
7.1.100.0060.00818.20
7.1.70.2500.01715.44
7.1.60.2700.01033.46
7.1.50.2530.01033.26
7.1.40.2730.02332.80
7.1.30.3600.02732.73
7.1.20.2930.02033.00
7.1.10.1770.02314.90
7.1.00.3500.00315.04
7.0.200.2370.01014.94
7.0.190.2430.01715.07
7.0.180.2570.01314.72
7.0.170.4430.01014.63
7.0.160.3100.01314.52
7.0.150.2730.01314.41
7.0.140.3270.01314.45
7.0.130.2830.01014.92
7.0.120.2830.01714.83
7.0.110.3130.01314.68
7.0.100.3330.01314.80
7.0.90.0630.01314.54
7.0.80.3230.00714.86
7.0.70.3170.01314.48
7.0.60.3670.01714.47
7.0.50.3670.01314.68
7.0.40.3570.00714.92
7.0.30.3300.01315.01
7.0.20.3330.01714.61
7.0.10.0770.02014.86
7.0.00.3170.01014.80

preferences:
44.39 ms | 401 KiB | 5 Q