3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<TEXT ~THE BURGER ZERO~ No burger, no bun, just air. ~TRICKY TEST~ Meet me ~5pm. ~THE BURGER ITALIANO~ A soft mix of ground beef & mozzarella stuffed between two pillowy pieces of pasta.~NOTE~This is basically giant ravioli. ~THE BURGER MINI~A tiny little burger patty in a tiny little bun. TEXT; $pattern = '/ \s* ~ ( [\p{Lu} ]+ ) ~ \s* /ux'; $arr = preg_split($pattern, $str, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); print_r(array_chunk($arr, 2));

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.0050.00518.66
8.4.120.0100.00624.02
8.4.110.0060.00322.59
8.4.100.0110.00718.02
8.4.90.0120.01018.96
8.4.80.0150.00518.04
8.4.70.0120.00917.84
8.4.60.0140.00718.02
8.4.50.0130.00818.09
8.4.40.0130.00317.88
8.4.30.0100.01020.91
8.4.20.0140.00724.21
8.4.10.0070.01123.71
8.3.260.0120.00716.80
8.3.250.0110.00917.09
8.3.240.0070.01217.41
8.3.230.0130.01116.77
8.3.220.0150.00617.12
8.3.210.0110.00216.78
8.3.200.0120.00818.85
8.3.190.0150.00616.68
8.3.180.0100.00822.39
8.3.170.0060.01320.66
8.3.160.0110.00718.62
8.3.150.0110.00718.50
8.3.140.0040.00416.72
8.3.130.0030.00618.59
8.3.120.0040.00419.04
8.3.110.0040.00420.94
8.3.100.0070.01124.06
8.3.90.0070.01326.77
8.3.80.0030.00618.43
8.3.70.0100.01018.43
8.3.60.0070.00716.88
8.3.50.0090.00616.64
8.3.40.0110.00319.94
8.3.30.0060.00918.95
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.290.0140.00522.31
8.2.280.0130.00516.55
8.2.270.0080.00017.38
8.2.260.0070.00019.08
8.2.250.0120.00817.46
8.2.240.0030.01319.24
8.2.230.0070.00422.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0030.00618.54
8.2.190.0190.00316.63
8.2.180.0120.00317.00
8.2.170.0090.01219.09
8.2.160.0060.01122.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00421.31
8.2.110.0030.00620.54
8.2.100.0000.00920.70
8.2.40.0100.00318.67
8.1.330.0110.00922.10
8.1.320.0130.00616.32
8.1.310.0000.00718.29
8.1.300.0060.00316.26
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00620.65
8.1.230.0060.00320.23

preferences:
28.1 ms | 403 KiB | 5 Q