3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "---\n title = A nice title goes here\n tags = tag1 tag2 tag3\n ---\n This is the content of this entry...\n Line2\n Line3\n" print_r(preg_split("/[\n]*[-]{3}[\n]/", $s, 3, PREG_SPLIT_NO_EMPTY)); print_r(preg_split("/[\n]*[-]{3}[\n]/", $s, 2, 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)
5.4.230.0120.04812.37
5.4.220.0140.04212.38
5.4.210.0120.04312.38
5.4.200.0100.04412.37
5.4.190.0120.04312.37
5.4.180.0120.04112.37
5.4.170.0130.04012.38
5.4.160.0070.04412.37
5.4.150.0140.03812.37
5.4.140.0130.03912.06
5.4.130.0130.04312.04
5.4.120.0120.04112.01
5.4.110.0110.03912.00
5.4.100.0140.03912.00
5.4.90.0130.03912.00
5.4.80.0090.04512.00
5.4.70.0120.04612.00
5.4.60.0120.03912.00
5.4.50.0090.04112.00
5.4.40.0110.04111.98
5.4.30.0090.04211.98
5.4.20.0110.04111.98
5.4.10.0080.04311.98
5.4.00.0120.03811.48
5.3.280.0120.04212.71
5.3.270.0140.04512.72
5.3.260.0100.04412.72
5.3.250.0110.04312.72
5.3.240.0130.04212.72
5.3.230.0150.04112.71
5.3.220.0140.03912.68
5.3.210.0130.04312.68
5.3.200.0120.04612.68
5.3.190.0140.04312.68
5.3.180.0100.04312.67
5.3.170.0130.03812.67
5.3.160.0110.04212.67
5.3.150.0130.04312.67
5.3.140.0120.04212.66
5.3.130.0120.04412.66
5.3.120.0130.04312.66
5.3.110.0120.04412.66
5.3.100.0100.04412.12
5.3.90.0110.04212.08
5.3.80.0140.04312.07
5.3.70.0130.04212.07
5.3.60.0090.04912.07
5.3.50.0120.04112.00
5.3.40.0130.04212.00
5.3.30.0110.04111.94
5.3.20.0100.04211.72
5.3.10.0130.04011.68
5.3.00.0150.04011.67

preferences:
138.62 ms | 1394 KiB | 7 Q