3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filepaths = '../images/box1/IMG_3158.JPG../images/box1/IMG_3161.JPG../images/box1/IMG_3163.JPG../images/box1/IMG_3158.JPG../images/box1/IMG_3161.JPG../images/box1/IMG_3163.JPG'; var_export(preg_split('/\.JPG\K(?!$)/', $filepaths)); echo "\n---\n"; var_export(preg_split('/(?!^)(?=\.\.)/', $filepaths)); echo "\n---\n"; var_export(preg_split('/\.JPG\K/', $filepaths, 0, PREG_SPLIT_NO_EMPTY)); echo "\n---\n"; var_export(preg_split('/(?!^)(?=\.\.)/', $filepaths, 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.20.0150.00420.04
8.4.10.0040.00719.69
8.3.150.0080.01217.34
8.3.140.0050.00316.48
8.3.130.0100.01016.65
8.3.120.0350.00616.78
8.3.110.0240.01716.72
8.3.100.0280.01916.38
8.3.90.0440.00416.62
8.3.80.0470.00016.64
8.3.70.0350.01116.84
8.3.60.0330.01716.82
8.3.50.0310.01616.70
8.3.40.0280.00317.66
8.3.30.0190.00017.58
8.3.20.0190.00617.48
8.3.10.0220.00917.82
8.3.00.0150.00317.45
8.2.260.0030.01417.17
8.2.250.0060.00317.02
8.2.240.0300.01016.58
8.2.230.0330.00916.31
8.2.220.0260.00916.66
8.2.210.0260.00316.46
8.2.200.0230.01216.22
8.2.190.0250.00816.54
8.2.180.0270.01116.32
8.2.170.0350.01317.64
8.2.160.0370.00417.87
8.2.150.0340.00317.76
8.2.140.0290.01317.80
8.2.130.0310.00917.43
8.2.120.0400.00617.76
8.2.110.0250.01217.67
8.2.100.0370.00317.56
8.2.90.0370.00517.58
8.2.80.0340.00717.52
8.2.70.0340.01117.66
8.2.60.0320.00917.56
8.2.50.0380.00317.52
8.2.40.0290.01017.47
8.2.30.0350.00317.27
8.2.20.0300.00917.35
8.2.10.0320.00617.51
8.2.00.0320.00617.64
8.1.310.0090.00018.54
8.1.300.0260.01316.38
8.1.290.0280.01116.36
8.1.280.0320.00716.07
8.1.270.0340.00817.45
8.1.260.0430.00917.20
8.1.250.0430.00417.41
8.1.240.0330.00317.38
8.1.230.0330.00417.47
8.1.220.0250.01117.36
8.1.210.0260.00717.34
8.1.200.0240.00717.10
8.1.190.0240.00917.27
8.1.180.0170.01417.20
8.1.170.0220.00817.46
8.1.160.0210.01117.42
8.1.150.0210.00917.42
8.1.140.0260.00517.18
8.1.130.0250.01117.42
8.1.120.0330.00717.46
8.1.110.0290.00917.36
8.1.100.0270.01217.23
8.1.90.0220.00717.45
8.1.80.0170.00717.29
8.1.70.0150.00317.44
8.1.60.0180.00017.41
8.1.50.0240.01317.28
8.1.40.0360.00417.29
8.1.30.0410.00017.54
8.1.20.0340.00717.45
8.1.10.0360.00317.43
8.1.00.0270.01317.27

preferences:
38.13 ms | 406 KiB | 6 Q