3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thumbs_meta = array( 'width' => 1024, 'height' => 768, 'file' => '2018/08/Penguins.jpg', 'sizes' => array( 'thumbnail' => array( 'file' => 'Penguins-150x150.jpg', 'width' => 150, 'height' => 150, 'mime-type' => 'image/jpeg' ), 'medium' => array( 'file' => 'Penguins-300x225.jpg', 'width' => 300, 'height' => 225, 'mime-type' => 'image/jpeg' ), 'medium_large' => array( 'file' => 'Penguins-768x576.jpg', 'width' => 768, 'height' => 576, 'mime-type' => 'image/jpeg' ), 'large' => array( 'file' => 'Penguins-1024x768.jpg', 'width' => 1024, 'height' => 768, 'mime-type' => 'image/jpeg' ), 'twentyseventeen-thumbnail-avatar' => array( 'file' => 'Penguins-100x100.jpg', 'width' => 100, 'height' => 100, 'mime-type' => 'image/jpeg' ) ) ); $thumbnail_files = array_column($thumbs_meta['sizes'], 'file'); var_export($thumbnail_files); echo "\nCount: " , count($thumbnail_files) , "\n\n"; echo "Imploded: " , implode(',', $thumbnail_files);

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.140.0150.00717.66
8.4.130.0130.00818.05
8.4.120.0100.01120.85
8.4.110.0120.01022.37
8.4.100.0030.00618.01
8.4.90.0110.00718.77
8.4.80.0050.00417.65
8.4.70.0140.00617.82
8.4.60.0030.00818.96
8.4.50.0060.00517.64
8.4.40.0030.00517.66
8.4.30.0100.00017.88
8.4.20.0040.01818.58
8.4.10.0060.01017.47
8.3.270.0090.01116.63
8.3.260.0040.00516.68
8.3.250.0120.00618.91
8.3.240.0060.00816.61
8.3.230.0090.01016.48
8.3.220.0100.00819.11
8.3.210.0130.00616.50
8.3.200.0060.00316.71
8.3.190.0100.00919.09
8.3.180.0060.01217.04
8.3.170.0090.00916.70
8.3.160.0000.01816.45
8.3.150.0110.00719.08
8.3.140.0040.00417.20
8.3.130.0000.00916.34
8.3.120.0080.00018.77
8.3.110.0080.00020.94
8.3.100.0100.00024.06
8.3.90.0200.00026.77
8.3.80.0100.00317.97
8.3.70.0130.00318.55
8.3.60.0060.00918.25
8.3.50.0080.00617.22
8.3.40.0110.00418.59
8.3.30.0060.00918.67
8.3.20.0000.00819.16
8.3.10.0050.00323.57
8.3.00.0050.00322.52
8.2.290.0080.01220.37
8.2.280.0100.00918.71
8.2.270.0100.01016.71
8.2.260.0050.00318.63
8.2.250.0030.00616.78
8.2.240.0000.00918.88
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0090.00926.77
8.2.200.0040.00416.75
8.2.190.0120.00616.88
8.2.180.0220.00016.50
8.2.170.0070.00722.96
8.2.160.0170.00321.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00022.08
8.2.120.0040.00426.35
8.2.110.0060.00320.83
8.2.100.0040.00817.72
8.2.90.0000.00817.75
8.2.80.0080.00017.97
8.2.70.0080.00018.16
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0030.00519.36
8.2.30.0070.00020.55
8.2.20.0040.00418.01
8.2.10.0040.00419.82
8.2.00.0040.00419.48
8.1.330.0070.00221.95
8.1.320.0070.00416.21
8.1.310.0050.00316.85
8.1.300.0040.00817.92
8.1.290.0080.00030.84
8.1.280.0150.00625.92
8.1.270.0040.00422.23
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00617.66
8.1.230.0030.00719.14
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0030.00517.35
8.1.180.0070.00018.10
8.1.170.0000.00818.82
8.1.160.0000.00818.82
8.1.150.0040.00418.85
8.1.140.0080.00018.98
8.1.130.0030.00318.90
8.1.120.0000.00717.43
8.1.110.0000.00717.37
8.1.100.0020.00517.46
8.1.90.0000.00717.30
8.1.80.0060.00317.44
8.1.70.0040.00417.38
8.1.60.0030.00517.56
8.1.50.0030.00617.45
8.1.40.0040.00417.54
8.1.30.0040.00417.68
8.1.20.0000.00717.68
8.1.10.0000.00717.57
8.1.00.0070.00417.45
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0000.01018.46
8.0.270.0000.00717.27
8.0.260.0050.00218.36
8.0.250.0000.00816.86
8.0.240.0030.00317.00
8.0.230.0000.00716.79
8.0.220.0030.00316.86
8.0.210.0030.00316.71
8.0.200.0030.00316.89
8.0.190.0050.00316.91
8.0.180.0000.00916.88
8.0.170.0000.00816.95
8.0.160.0000.00716.92
8.0.150.0000.00716.87
8.0.140.0000.00716.79
8.0.130.0060.00013.34
8.0.120.0040.00416.83
8.0.110.0030.00616.77
8.0.100.0040.00416.79
8.0.90.0040.00416.77
8.0.80.0150.00516.88
8.0.70.0050.00216.89
8.0.60.0080.00016.77
8.0.50.0040.00416.79
8.0.30.0110.00817.06
8.0.20.0060.01217.40
8.0.10.0000.00716.86
8.0.00.0160.00416.82
7.4.330.0000.00415.55
7.4.320.0030.00316.63
7.4.300.0060.00016.53
7.4.290.0000.00716.43
7.4.280.0000.00716.50
7.4.270.0030.00316.46
7.4.260.0040.00416.55
7.4.250.0040.00416.57
7.4.240.0030.00316.62
7.4.230.0080.00016.31
7.4.220.0030.00516.46
7.4.210.0060.00816.57
7.4.200.0000.00716.45
7.4.160.0070.00916.51
7.4.140.0100.01017.86
7.4.130.0120.00916.45
7.4.120.0120.00616.55
7.4.110.0110.00616.52
7.4.100.0060.01216.48
7.4.90.0060.01616.51
7.4.80.0100.00719.39
7.4.70.0140.00516.51
7.4.60.0120.00316.54
7.4.50.0120.00016.50
7.4.40.0070.01016.60
7.4.00.0110.00714.99
7.3.330.0020.00213.20
7.3.320.0070.00013.19
7.3.310.0030.00316.27
7.3.300.0000.00716.24
7.3.290.0000.00816.11
7.3.280.0060.00916.29
7.3.260.0080.00916.36
7.3.240.0110.00816.36
7.3.230.0140.00316.48
7.3.210.0090.01516.41
7.3.200.0080.00816.38
7.3.190.0120.00616.47
7.3.180.0080.01116.18
7.3.170.0100.00616.58
7.3.160.0080.00816.26
7.3.10.0030.00616.61
7.3.00.0060.00616.39
7.2.330.0130.00616.48
7.2.320.0090.01316.49
7.2.310.0030.01316.55
7.2.300.0090.01416.66
7.2.290.0070.01116.70
7.2.130.0130.00316.91
7.2.120.0130.00316.69
7.2.110.0060.00916.94
7.2.100.0060.00916.94
7.2.90.0480.01015.65
7.2.80.0380.00515.88
7.2.70.0440.00315.79
7.2.60.0550.00615.92
7.2.50.0230.01216.02
7.2.40.0830.01215.89
7.2.30.0780.00215.89
7.2.20.1040.00515.83
7.2.10.0480.00516.20
7.2.00.0820.00716.01
7.1.250.0030.00915.55
7.1.210.0790.01013.99
7.1.200.0950.00313.89
7.1.190.0570.00613.66
7.1.180.0700.00713.94
7.1.170.0570.01013.68
7.1.160.0900.01013.84
7.1.150.0970.00613.86
7.1.140.0880.00313.65
7.1.130.1000.00313.84
7.1.120.0990.00613.82
7.1.110.0980.00313.99
7.1.100.1090.00613.93
7.1.90.1250.01314.05
7.1.80.1430.00013.92
7.1.70.1370.00013.93
7.1.60.1220.00731.85
7.1.50.1690.01031.70
7.1.40.1770.01331.80
7.1.30.1810.01331.64
7.1.20.1610.01031.81
7.1.10.2060.00013.65
7.1.00.0280.01213.71

preferences:
113.43 ms | 403 KiB | 5 Q