3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'This {is {{Par}m1}} plus {{Par{m3a{{Parm3b}}}} a}nd {{Parm4a||{{Par}m4b||{{Parm4c||{{Parm4d||Parm}}}}}}}}.'; $res = preg_split('~({{(?:(?!{{|}}).|(?1))*}})~', $text, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); print_r($res);

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.5.00.0120.01020.33
8.4.150.0030.00014.05
8.4.140.0180.00517.69
8.4.130.0120.00918.69
8.4.120.0040.01324.05
8.4.110.0050.00520.62
8.4.100.0140.00817.91
8.4.90.0130.00818.72
8.4.80.0130.00719.74
8.4.70.0100.01118.05
8.4.60.0160.00518.50
8.4.50.0070.00217.98
8.4.40.0040.00420.82
8.4.30.0130.00318.75
8.4.20.0170.00318.07
8.4.10.0120.00323.76
8.3.280.0090.01218.54
8.3.270.0130.00616.50
8.3.260.0110.00916.64
8.3.250.0090.00618.80
8.3.240.0090.00717.14
8.3.230.0130.00616.59
8.3.220.0090.00817.13
8.3.210.0100.00916.80
8.3.200.0050.00316.80
8.3.190.0040.00418.93
8.3.180.0060.00218.68
8.3.170.0130.00618.83
8.3.160.0040.01516.55
8.3.150.0100.00718.85
8.3.140.0060.01118.75
8.3.130.0030.00618.71
8.3.120.0060.00320.69
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0100.01026.77
8.3.80.0040.00719.36
8.3.70.0140.00718.30
8.3.60.0120.00318.43
8.3.50.0100.01018.48
8.3.40.0100.00719.95
8.3.30.0080.00818.72
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0080.01120.67
8.2.280.0070.00118.52
8.2.270.0060.01318.59
8.2.260.0060.00918.42
8.2.250.0000.01016.96
8.2.240.0000.00917.10
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0030.00618.88
8.2.190.0160.00016.99
8.2.180.0070.00718.41
8.2.170.0140.00318.95
8.2.160.0160.00622.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.76
8.2.110.0090.00021.24
8.2.100.0000.01217.72
8.2.90.0040.00418.03
8.2.80.0080.00019.95
8.2.70.0040.00417.63
8.2.60.0030.00617.75
8.2.50.0060.01218.10
8.2.40.0150.00318.10
8.2.30.0090.00718.10
8.2.20.0040.01218.10
8.2.10.0140.00418.10
8.2.00.0140.00318.10
8.1.330.0120.00722.02
8.1.320.0110.00816.04
8.1.310.0070.00416.97
8.1.300.0030.00718.62
8.1.290.0000.00930.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0100.00728.09
8.1.240.0060.00322.47
8.1.230.0120.00020.92
8.1.220.0080.00017.74
8.1.210.0040.00418.90
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0080.00818.10
8.1.170.0130.00318.10
8.1.160.0120.00618.10
8.1.150.0100.00718.10
8.1.140.0140.00518.10
8.1.130.0000.00918.10
8.1.120.0090.00618.10
8.1.110.0030.01418.10
8.1.100.0090.00918.10
8.1.90.0060.00918.10
8.1.80.0080.00818.10
8.1.70.0110.00718.10
8.1.60.0150.00418.10
8.1.50.0150.00418.10
8.1.40.0200.00018.10
8.1.30.0140.00218.10
8.1.20.0150.00318.10
8.1.10.0130.00418.10
8.1.00.0190.00018.10
8.0.300.0040.00419.90
8.0.290.0080.00016.71
8.0.280.0110.00518.10
8.0.270.0120.00418.10
8.0.260.0110.00618.10
8.0.250.0120.00418.10
8.0.240.0040.01218.10
8.0.230.0140.00418.10
8.0.220.0080.00818.10
8.0.210.0170.00218.10
8.0.200.0080.00818.10
8.0.190.0170.00018.10
8.0.180.0120.00418.10
8.0.170.0090.00718.10
8.0.160.0120.00618.10
8.0.150.0130.00418.10
8.0.140.0130.00518.10
8.0.130.0140.00318.10
8.0.120.0130.00418.10
8.0.110.0090.00618.10
8.0.100.0120.00418.10
8.0.90.0130.00318.10
8.0.80.0120.00418.10
8.0.70.0100.00718.10
8.0.60.0160.00018.10
8.0.50.0130.00318.10
8.0.30.0150.00018.10
8.0.20.0130.00218.10
8.0.10.0120.00318.10

preferences:
32.44 ms | 403 KiB | 5 Q