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)); echo "\n---\n"; var_export(preg_split('#\.\w{3}\K(?=\.\./)#', $filepaths));

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.0120.00919.53
8.4.10.0060.00319.64
8.3.150.0150.00617.35
8.3.140.0030.01416.91
8.3.130.0080.00016.91
8.3.120.0360.01116.54
8.3.110.0370.00716.45
8.3.100.0300.00916.85
8.3.90.0230.00816.68
8.3.80.0150.01216.78
8.3.70.0220.00316.73
8.3.60.0300.00716.59
8.3.50.0320.00316.70
8.3.40.0360.00417.66
8.3.30.0250.00917.68
8.3.20.0220.00917.64
8.3.10.0300.00717.58
8.3.00.0160.00819.48
8.2.260.0120.00616.99
8.2.250.0030.00616.63
8.2.240.0380.00016.42
8.2.230.0320.01016.39
8.2.220.0300.01216.49
8.2.210.0300.00416.13
8.2.200.0270.00616.39
8.2.190.0270.00916.43
8.2.180.0340.00716.81
8.2.170.0400.00317.74
8.2.160.0360.00317.65
8.2.150.0280.00917.47
8.2.140.0260.01517.70
8.2.130.0370.00617.59
8.2.120.0320.01117.55
8.2.110.0330.01117.62
8.2.100.0370.00017.66
8.2.90.0320.01017.86
8.2.80.0420.00017.56
8.2.70.0260.00717.70
8.2.60.0350.00317.61
8.2.50.0250.01617.55
8.2.40.0310.00817.63
8.2.30.0310.01917.32
8.2.20.0290.01117.47
8.2.10.0230.01017.75
8.2.00.0370.00017.28
8.1.310.0040.00418.61
8.1.300.0350.00715.86
8.1.290.0320.00615.78
8.1.280.0370.00316.01
8.1.270.0330.01117.21
8.1.260.0280.01417.57
8.1.250.0280.00917.34
8.1.240.0300.01017.13
8.1.230.0320.00317.27
8.1.220.0310.00617.35
8.1.210.0330.00417.20
8.1.200.0190.01917.33
8.1.190.0200.01717.26
8.1.180.0340.00317.20
8.1.170.0330.00317.04
8.1.160.0370.00017.20
8.1.150.0320.00617.39
8.1.140.0220.01517.38
8.1.130.0340.00417.28
8.1.120.0320.00817.41
8.1.110.0400.00417.27
8.1.100.0260.00717.13
8.1.90.0150.01817.04
8.1.80.0310.00017.35
8.1.70.0210.01017.12
8.1.60.0220.01117.58
8.1.50.0330.00317.20
8.1.40.0330.00417.17
8.1.30.0370.00317.52
8.1.20.0310.00817.39
8.1.10.0370.00017.34
8.1.00.0260.01517.17

preferences:
22.4 ms | 403 KiB | 5 Q