3v4l.org

run code in 300+ PHP versions simultaneously
<?php $projPicsList = [ 'foobar_1.jpg', 'foobar_2.jpg', 'foobar_12.jpg', 'foobar_th1.jpg', 'foobar_th2.jpg', 'sdfaso234_33.jpg', 'foobar_th12.jpg', 'foobar_th32.jpg', 'fsdfas_th56.jpg', 'sdfiweflsdfasd24sdfsd_sdfse_th67.jpg', ]; /* $thumbs = []; foreach($projPicsList as $file) { if(preg_match('/.*_th\d+\.jpg$/' , $file)) { $thumbs[] = $file; } }*/ $thumbs = array_filter($projPicsList, function($item){ return preg_match('/.*_th\d+\.jpg$/' , $item); }); print_r($thumbs);

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.60.0150.00418.68
8.3.50.0090.00616.51
8.3.40.0130.00718.84
8.3.30.0040.01118.50
8.3.20.0080.00018.93
8.3.10.0030.00523.53
8.3.00.0050.00923.45
8.2.180.0140.00018.41
8.2.170.0150.00019.25
8.2.160.0160.00319.08
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00320.98
8.2.110.0040.00422.16
8.2.100.0070.00518.03
8.2.90.0030.00617.75
8.2.80.0060.00318.83
8.2.70.0030.00617.75
8.2.60.0050.00519.60
8.2.50.0050.00317.75
8.2.40.0090.00019.47
8.2.30.0040.00419.18
8.2.20.0030.00717.99
8.2.10.0040.00419.34
8.2.00.0040.00419.52
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.39
8.1.230.0110.00317.79
8.1.220.0000.00817.80
8.1.210.0050.00318.77
8.1.200.0000.00817.60
8.1.190.0050.00317.48
8.1.180.0060.00319.26
8.1.170.0090.00019.00
8.1.160.0000.00718.95
8.1.150.0000.00818.82
8.1.140.0000.00719.63
8.1.130.0070.00017.64
8.1.120.0040.00417.62
8.1.110.0040.00417.50
8.1.100.0000.00717.65
8.1.90.0000.00717.59
8.1.80.0020.00517.66
8.1.70.0080.00017.57
8.1.60.0080.00017.70
8.1.50.0040.00417.67
8.1.40.0040.00417.67
8.1.30.0000.00717.73
8.1.20.0000.00717.76
8.1.10.0040.00417.54
8.1.00.0040.00417.41
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0070.00016.80
8.0.260.0040.00416.89
8.0.250.0000.00717.05
8.0.240.0070.00016.94
8.0.230.0050.00217.05
8.0.220.0000.00716.81
8.0.210.0050.00316.83
8.0.200.0070.00017.09
8.0.190.0000.00816.95
8.0.180.0060.00317.08
8.0.170.0030.00617.05
8.0.160.0040.00417.12
8.0.150.0000.01016.89
8.0.140.0080.00017.00
8.0.130.0000.00613.54
8.0.120.0030.00616.91
8.0.110.0050.00317.03
8.0.100.0030.00516.91
8.0.90.0040.00417.02
8.0.80.0130.00716.99
8.0.70.0040.00416.91
8.0.60.0040.00416.94
8.0.50.0040.00416.92
8.0.30.0100.00817.21
8.0.20.0070.01317.40
8.0.10.0000.00716.98
8.0.00.0100.00816.87
7.4.330.0030.00315.55
7.4.320.0000.00716.79
7.4.300.0070.00016.81
7.4.290.0000.00716.78
7.4.280.0050.00316.84
7.4.270.0050.00316.79
7.4.260.0070.00016.78
7.4.250.0000.00816.62
7.4.240.0040.00316.63
7.4.230.0000.00716.71
7.4.220.0000.00716.73
7.4.210.0050.01116.70
7.4.200.0050.00216.59
7.4.160.0090.00816.62
7.4.140.0120.00717.86
7.4.130.0120.00616.70
7.4.120.0090.00816.70
7.4.110.0100.00716.51
7.4.100.0110.00616.59
7.4.90.0090.01316.59
7.4.80.0100.01019.39
7.4.70.0100.01016.60
7.4.60.0040.01816.59
7.4.50.0040.01416.51
7.4.40.0110.01216.63
7.4.00.0030.01415.02
7.3.330.0030.00313.38
7.3.320.0000.00513.32
7.3.310.0030.00316.38
7.3.300.0040.00416.34
7.3.290.0000.00716.33
7.3.280.0060.00916.37
7.3.260.0110.00816.52
7.3.240.0070.01216.54
7.3.230.0120.00916.52
7.3.210.0140.00316.27
7.3.200.0180.00016.55
7.3.190.0090.01216.47
7.3.180.0100.01016.77
7.3.170.0160.00016.56
7.3.160.0060.01016.44
7.3.120.0170.00014.99
7.3.110.0080.00415.08
7.3.100.0100.00614.87
7.3.90.0030.00915.03
7.3.80.0000.01215.07
7.3.70.0040.00814.69
7.3.60.0070.00714.73
7.3.50.0040.01215.05
7.3.40.0030.00914.75
7.3.30.0030.00914.96
7.3.20.0100.00316.69
7.3.10.0070.00716.71
7.3.00.0100.00716.59
7.2.330.0090.00916.79
7.2.320.0100.01316.90
7.2.310.0160.00616.81
7.2.300.0030.01516.87
7.2.290.0060.01316.73
7.2.250.0000.01815.32
7.2.240.0100.01015.11
7.2.230.0060.01315.25
7.2.220.0060.00914.97
7.2.210.0070.00615.08
7.2.200.0070.00715.28
7.2.190.0030.01014.93
7.2.180.0040.01415.28
7.2.170.0110.00415.16
7.2.80.0190.01115.02
7.2.70.0260.01115.04
7.2.60.0220.01315.25
7.2.50.0240.01014.96
7.2.40.0170.01015.22
7.2.30.0200.01015.17
7.2.20.0230.00315.29
7.2.10.0170.01015.07
7.2.00.0250.00015.26
7.1.330.0040.01115.92
7.1.320.0110.00315.86
7.1.310.0060.01216.06
7.1.300.0040.00815.82
7.1.290.0030.00815.59
7.1.280.0030.00715.59
7.1.270.0070.00315.94
7.1.260.0060.00915.64
7.1.200.0040.00815.70
7.1.190.0280.00314.03
7.1.180.0240.01013.61
7.1.170.0330.00913.91
7.1.160.0220.00614.04
7.1.150.0190.00613.84
7.1.140.1630.00614.03
7.1.130.0120.01214.14
7.1.120.0180.00714.14
7.1.110.0200.00713.83
7.1.100.0190.00714.08
7.1.90.0270.00914.08
7.1.80.0130.01013.94
7.1.70.0250.00714.14
7.1.60.0400.00931.93
7.1.50.0430.01031.67
7.1.40.0370.01031.68
7.1.30.0450.00632.03
7.1.20.0540.01232.00
7.1.10.0410.01413.69
7.1.00.0210.00314.06

preferences:
61.27 ms | 400 KiB | 5 Q