3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => 'FOLDER./Images.Vacation.2018', 1 => './Images.Vacation.2018/Racoon001.jpg', 2 => './Images.Vacation.2018/Racoon002.txt', 3 => './Images.Vacation.2018/the.racoon.swimming.mp4', 4 => './Images.Vacation.2018/the.racoon.swimming.slv', 5 => 'FOLDER./WestImages', 6 => './WestImages/Ramco.txt', 7 => './WestImages/Ramco.jpg', 8 => 'FOLDER./WestImages/Subimages', 9 => './WestImages/Subimages/Image001.jpg', 10 => './WestImages/Subimages/Image002.jpg', 11 => './WestImages/West.Ramco.Swimming.mp4', ); $folders = preg_grep("/^FOLDER.*/", $arr); foreach($folders as $folder){ $result[] = $folder; $result = array_merge($result, preg_grep("/^\." . str_replace(["FOLDER.", "/"], ["","\/"], $folder) . "\/[A-Za-z0-9\.]+$/", $arr)); } var_dump($result);

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.3.130.0090.00016.77
8.3.120.0080.00318.79
8.3.110.0060.00318.38
8.3.100.0110.00820.47
8.3.90.0030.00526.77
8.3.80.0030.00718.43
8.3.70.0160.00018.43
8.3.60.0210.00018.56
8.3.50.0140.00616.55
8.3.40.0150.00318.92
8.3.30.0110.00418.67
8.3.20.0000.00720.80
8.3.10.0050.00321.77
8.3.00.0080.00023.51
8.2.250.0120.00318.45
8.2.240.0030.00617.26
8.2.230.0120.00020.94
8.2.220.0070.00324.06
8.2.210.0160.00326.77
8.2.200.0030.00718.41
8.2.190.0090.00616.63
8.2.180.0150.00316.63
8.2.170.0120.00322.96
8.2.160.0090.00620.43
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00226.16
8.2.110.0070.00319.30
8.2.100.0090.00317.97
8.2.90.0030.00517.97
8.2.80.0040.00417.97
8.2.70.0040.00418.16
8.2.60.0040.00418.34
8.2.50.0060.00318.10
8.2.40.0000.00919.35
8.2.30.0030.00619.34
8.2.20.0060.00318.18
8.2.10.0040.00418.96
8.2.00.0000.00719.43
8.1.300.0090.00018.39
8.1.290.0000.01030.84
8.1.280.0070.01125.92
8.1.270.0060.00322.54
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00919.34
8.1.230.0080.00320.89
8.1.220.0030.00617.79
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0080.00018.49
8.1.160.0000.00718.82
8.1.150.0030.00518.83
8.1.140.0000.00718.92
8.1.130.0030.00320.21
8.1.120.0030.00617.65
8.1.110.0080.00017.54
8.1.100.0000.00817.56
8.1.90.0030.00617.50
8.1.80.0040.00417.51
8.1.70.0040.00417.61
8.1.60.0060.00317.64
8.1.50.0000.00817.66
8.1.40.0040.00417.70
8.1.30.0040.00817.77
8.1.20.0030.00617.84
8.1.10.0080.00017.63
8.1.00.0030.00517.60
8.0.300.0020.00519.85
8.0.290.0040.00416.75
8.0.280.0050.00318.34
8.0.270.0000.00716.95
8.0.260.0000.00618.48
8.0.250.0040.00416.98
8.0.240.0030.00317.11
8.0.230.0040.00417.00
8.0.220.0070.00017.05
8.0.210.0000.00717.03
8.0.200.0000.00717.13
8.0.190.0040.00416.95
8.0.180.0000.00717.03
8.0.170.0050.00317.07
8.0.160.0070.00016.97
8.0.150.0000.00816.99
8.0.140.0050.00217.01
8.0.130.0030.00313.46
8.0.120.0050.00316.98
8.0.110.0000.00817.03
8.0.100.0080.00016.88
8.0.90.0040.00417.05
8.0.80.0040.01116.97
8.0.70.0000.00816.89
8.0.60.0040.00417.16
8.0.50.0040.00416.98
8.0.30.0080.01317.28
8.0.20.0190.00717.49
8.0.10.0070.00016.98
8.0.00.0100.00916.90
7.4.330.0020.00215.55
7.4.320.0000.00716.62
7.4.300.0030.00316.86
7.4.290.0000.00816.61
7.4.280.0000.00916.79
7.4.270.0030.00316.77
7.4.260.0070.00016.80
7.4.250.0040.00416.63
7.4.240.0000.00716.73
7.4.230.0000.00716.61
7.4.220.0000.00816.74
7.4.210.0080.01016.75
7.4.200.0040.00416.91
7.4.160.0100.01016.70
7.4.140.0030.01617.86
7.4.130.0120.01316.61
7.4.120.0120.00616.76
7.4.110.0160.01016.96
7.4.100.0040.01716.73
7.4.90.0080.00816.77
7.4.80.0160.00619.39
7.4.70.0130.01016.61
7.4.60.0130.00716.78
7.4.50.0040.01116.73
7.4.40.0070.01016.63
7.4.00.0040.01114.93
7.3.330.0050.00013.34
7.3.320.0000.00613.25
7.3.310.0040.00416.34
7.3.300.0030.00316.43
7.3.290.0070.00016.43
7.3.280.0090.00616.43
7.3.260.0080.01216.61
7.3.230.0040.01516.44
7.3.210.0040.01216.92
7.3.200.0190.00316.75
7.3.190.0030.01316.43
7.3.180.0070.01016.52
7.3.170.0100.01316.63
7.3.160.0060.01116.84
7.3.60.0130.00015.09
7.3.50.0060.00614.81
7.3.40.0080.00415.13
7.3.30.0030.00914.98
7.3.20.0110.00415.00
7.3.10.1130.00314.75
7.3.00.0100.01014.95
7.2.330.0070.01116.91
7.2.320.0030.02116.94
7.2.310.0140.00316.81
7.2.300.0050.01916.85
7.2.290.0130.00716.84
7.2.190.0090.00315.27
7.2.180.0070.00715.34
7.2.170.0060.00615.11
7.2.160.0000.01015.35
7.2.150.0070.00715.47
7.2.140.0170.00715.13
7.2.130.0160.01215.38
7.2.120.0240.00515.00
7.2.110.0160.01015.28
7.2.100.0200.00715.30
7.2.90.0100.01015.36
7.2.80.0170.00315.32
7.2.70.0160.00315.01
7.2.60.0150.00415.44
7.2.50.0270.00015.32
7.2.40.0100.01015.40
7.2.30.0090.01015.09
7.2.20.0250.00415.28
7.2.10.0120.00315.27
7.2.00.0190.00915.16
7.1.300.0070.00714.29
7.1.290.0130.00314.13
7.1.280.0190.00613.83
7.1.270.0060.00813.82
7.1.260.0120.00614.07
7.1.250.0100.00614.20

preferences:
27.22 ms | 403 KiB | 5 Q