3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = <<<TXT First chunk doesn't start with any delimiter. ****** Second chunk is separated from the first one by six asterisks plus a carriage return. ****** Third chunk is separated from the second one by six asterisks plus a carriage return. ****** And son on... and on. ****** But we might find other asterisks, maybe six like ****** inside the paragraph, and those one are not to be split. Same for new lines without ****** which should stay the same. TXT; var_export( preg_split('/\R*^\*{6}$\R*/m', $txt, 0, PREG_SPLIT_NO_EMPTY) );

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.130.0100.01019.39
8.4.120.0120.00922.27
8.4.110.0090.01518.55
8.4.100.0110.00819.07
8.4.90.0060.00320.56
8.4.80.0100.01218.97
8.4.70.0110.00818.83
8.4.60.0090.00719.01
8.4.50.0040.00418.60
8.4.40.0000.02019.59
8.4.30.0060.00320.52
8.4.20.0090.01218.08
8.4.10.0040.00418.05
8.3.260.0090.01016.54
8.3.250.0060.00219.07
8.3.240.0040.00416.68
8.3.230.0070.00416.86
8.3.220.0040.00418.81
8.3.210.0050.00516.59
8.3.200.0120.00416.50
8.3.190.0120.00817.23
8.3.180.0060.00318.98
8.3.170.0140.00516.44
8.3.160.0090.00918.72
8.3.150.0180.00017.42
8.3.140.0050.00318.87
8.3.130.0040.00418.50
8.3.120.0040.00418.80
8.3.110.0040.00418.66
8.3.100.0000.00816.98
8.3.90.0040.00426.77
8.3.80.0000.01018.30
8.3.70.0090.00916.88
8.3.60.0090.00616.74
8.3.50.0040.01220.40
8.3.40.0110.00419.08
8.3.30.0070.00718.91
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0080.00220.35
8.2.280.0120.00720.36
8.2.270.0160.00316.50
8.2.260.0040.01416.72
8.2.250.0100.01016.51
8.2.240.0090.00918.91
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0110.01126.77
8.2.200.0000.01016.75
8.2.190.0160.00618.43
8.2.180.0110.00725.92
8.2.170.0140.00019.02
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0080.00026.16
8.2.110.0100.00022.20
8.2.100.0060.00617.84
8.2.90.0040.00419.34
8.2.80.0000.00818.86
8.2.70.0000.00817.75
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0050.00318.09
8.2.30.0060.00318.02
8.2.20.0040.00420.49
8.2.10.0000.00717.74
8.2.00.0030.00619.27
8.1.330.0120.00621.90
8.1.320.0080.00316.27
8.1.310.0030.01216.39
8.1.300.0110.00018.56
8.1.290.0110.00430.84
8.1.280.0180.00425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.69
8.1.230.0000.01119.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.25
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0030.00518.82
8.1.150.0040.00418.72
8.1.140.0040.00417.60
8.1.130.0000.00819.36
8.1.120.0000.00717.57
8.1.110.0000.00717.58
8.1.100.0000.00717.56
8.1.90.0000.00817.57
8.1.80.0000.00817.52
8.1.70.0030.00317.54
8.1.60.0040.00417.72
8.1.50.0000.00817.61
8.1.40.0050.00217.65
8.1.30.0070.00717.79
8.1.20.0190.00717.82
8.1.10.0220.00317.48
8.1.00.0230.00517.50
8.0.300.0000.00718.77
8.0.290.0050.00216.75
8.0.280.0040.00418.32
8.0.270.0080.00017.05
8.0.260.0000.00716.98
8.0.250.0050.00317.00
8.0.240.0040.00417.03
8.0.230.0000.00717.14
8.0.220.0080.00017.04
8.0.210.0030.00316.95
8.0.200.0030.00517.13
8.0.190.0040.00417.02
8.0.180.0060.00616.98
8.0.170.0000.00816.98
8.0.160.0150.00017.11
8.0.150.0210.00416.98
8.0.140.0200.00316.93
8.0.130.0200.00416.86
8.0.120.0170.00917.07
8.0.110.0220.00016.91
8.0.100.0170.00717.00
8.0.90.0200.00016.98
8.0.80.0180.00816.95
8.0.70.0100.01416.98
8.0.60.0170.00416.92
8.0.50.0150.00817.02
8.0.30.0190.00316.94
8.0.20.0150.01017.04
8.0.10.0210.00417.00
7.4.330.0000.00515.55
7.4.320.0000.00616.68
7.4.300.0000.00716.73
7.4.290.0040.00416.58
7.4.280.0260.00016.66
7.4.270.0200.00716.68
7.4.260.0230.00316.73
7.4.250.0300.00016.66
7.4.240.0200.00416.65
7.4.230.0270.00016.66
7.4.220.0230.00316.67
7.4.210.0160.00316.71
7.4.200.0210.00016.54
7.4.190.0100.01016.58
7.4.180.0100.01016.63
7.4.160.0070.01116.70
7.4.150.0090.00616.57
7.4.140.0140.00716.55
7.4.130.0140.00016.64
7.4.120.0100.00916.60
7.4.110.0100.00516.49
7.4.100.0070.00716.61
7.4.90.0130.00316.64
7.4.80.0120.00516.70
7.4.70.0160.00016.47
7.4.60.0110.00516.50
7.4.50.0050.01116.50
7.4.40.0120.01216.55
7.4.30.0140.00616.70
7.4.20.0140.00716.66
7.4.10.0110.00216.48
7.4.00.0080.00616.53

preferences:
30.3 ms | 403 KiB | 5 Q