3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numberOfImages = 3; $x = 940; $y = 420; $background = imagecreatetruecolor($x, $y*3); $firstUrl = '/images/upload/photoalbum/photo/1.jpg'; $secondUrl = '/images/upload/photoalbum/photo/2.jpg'; $thirdUrl = '/images/upload/photoalbum/photo/3.jpg'; $outputImage = $background; $first = imagecreatefromjpeg($firstUrl); $second = imagecreatefromjpeg($secondUrl); $third = imagecreatefromjpeg($thirdUrl); imagecopymerge($outputImage,$first,0,0,0,0, $x, $y,100); imagecopymerge($outputImage,$second,0,$y,0,0, $x, $y,100); imagecopymerge($outputImage,$third,0,$y*2,0,0, $x, $y,100); imagejpeg($outputImage, APPLICATION_PATH .'/images/upload/photoalbum/photo/test.jpg'); imagedestroy($outputImage); ?>

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.0100.00318.31
8.3.50.0070.00718.23
8.3.40.0090.00619.00
8.3.30.0080.00818.79
8.3.20.0070.00020.21
8.3.10.0030.01022.10
8.3.00.0080.00021.79
8.2.180.0080.00816.88
8.2.170.0090.00622.96
8.2.160.0100.00322.28
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00422.04
8.2.120.0040.00426.35
8.2.110.0100.00020.86
8.2.100.0090.00318.22
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0020.00520.59
8.2.30.0050.00219.12
8.2.20.0040.00417.89
8.2.10.0060.00317.98
8.2.00.0040.00418.20
8.1.280.0180.00325.92
8.1.270.0040.00420.35
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.74
8.1.230.0040.00720.35
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0000.00917.10
8.1.180.0070.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00818.82
8.1.150.0030.00619.96
8.1.140.0000.00817.64
8.1.130.0000.00719.05
8.1.120.0030.00317.44
8.1.110.0000.00717.45
8.1.100.0040.00417.41
8.1.90.0050.00317.30
8.1.80.0040.00417.40
8.1.70.0050.00317.41
8.1.60.0040.00417.43
8.1.50.0040.00417.53
8.1.40.0050.00317.55
8.1.30.0040.00417.72
8.1.20.0000.00817.55
8.1.10.0000.00817.56
8.1.00.0000.00917.54
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.41
8.0.270.0030.00317.14
8.0.260.0060.00018.38
8.0.250.0000.00816.90
8.0.240.0040.00417.01
8.0.230.0030.00316.85
8.0.220.0000.00816.91
8.0.210.0030.00316.89
8.0.200.0000.00817.00
8.0.190.0040.00417.00
8.0.180.0050.00316.96
8.0.170.0000.00716.97
8.0.160.0030.00316.98
8.0.150.0030.00616.86
8.0.140.0000.00816.89
8.0.130.0000.00713.30
8.0.120.0040.00416.93
8.0.110.0050.00316.73
8.0.100.0040.00416.88
8.0.90.0050.00316.95
8.0.80.0210.00016.95
8.0.70.0040.00416.82
8.0.60.0080.00016.81
8.0.50.0040.00416.77
8.0.30.0120.00617.00
8.0.20.0070.01417.40
8.0.10.0050.00316.89
8.0.00.0140.00416.52
7.4.330.0000.00515.55
7.4.320.0030.00316.62
7.4.300.0000.00616.63
7.4.290.0050.00516.62
7.4.280.0030.00516.67
7.4.270.0060.00016.68
7.4.260.0070.00016.66
7.4.250.0040.00416.49
7.4.240.0050.00216.57
7.4.230.0000.00716.38
7.4.220.0070.01016.71
7.4.210.0100.00716.71
7.4.200.0030.00316.37
7.4.160.0120.00316.55
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0090.01516.47
7.4.120.0100.01016.41
7.4.110.0150.00416.73
7.4.100.0140.00416.60
7.4.90.0050.01416.62
7.4.80.0110.00719.39
7.4.70.0060.01516.37
7.4.60.0060.00916.61
7.4.50.0030.01116.60
7.4.40.0030.01616.52
7.4.30.0130.00316.50
7.4.10.0110.00714.94
7.4.00.0100.00814.83
7.3.330.0050.00013.14
7.3.320.0060.00013.13
7.3.310.0000.00716.44
7.3.300.0030.00316.34
7.3.290.0060.00816.31
7.3.280.0070.01016.27
7.3.270.0110.00617.40
7.3.260.0090.00916.37
7.3.250.0100.00916.24
7.3.240.0100.01016.36
7.3.230.0080.00816.32
7.3.210.0110.00716.41
7.3.200.0120.01516.25
7.3.190.0110.00516.20
7.3.180.0080.01316.50
7.3.170.0120.00316.54
7.3.160.0050.01116.32
7.3.130.0100.00614.71
7.3.120.0050.01214.75
7.3.110.0080.00914.89
7.3.100.0050.00814.73
7.3.90.0010.00914.82
7.3.80.0060.00714.84
7.3.70.0050.00714.75
7.3.60.0040.00814.71
7.3.50.0080.00714.77
7.3.40.0080.00614.82
7.3.30.0070.00814.82
7.3.20.0040.00916.50
7.3.10.0050.00916.53
7.3.00.0080.00716.59
7.2.330.0150.00316.49
7.2.320.0080.00816.34
7.2.310.0140.00416.57
7.2.300.0120.01216.63
7.2.290.0090.00616.28
7.2.260.0060.01214.88
7.2.250.0100.00814.91
7.2.240.0080.00914.84
7.2.230.0050.01014.94
7.2.220.0050.00914.77
7.2.210.0080.00614.76
7.2.200.0050.00715.00
7.2.190.0070.00814.85
7.2.180.0040.01214.89
7.2.170.0030.01114.85
7.2.160.0050.00914.80
7.2.150.0010.01516.68
7.2.140.0040.01116.82
7.2.130.0070.00516.79
7.2.120.0090.00516.67
7.2.110.0060.00716.81
7.2.100.0050.00816.72
7.2.90.0090.00616.82
7.2.80.0040.00916.79
7.2.70.0060.00916.69
7.2.60.0050.00816.73
7.2.50.0070.00916.79
7.2.40.0040.00816.74
7.2.30.0030.01216.65
7.2.20.0030.01016.68
7.2.10.0050.00716.73
7.2.00.0060.00916.78
7.1.330.0080.00715.63
7.1.320.0060.00715.74
7.1.310.0040.00715.52
7.1.300.0060.00815.59
7.1.290.0050.00815.65
7.1.280.0080.00815.56
7.1.270.0040.00815.55
7.1.260.0050.00915.55
7.1.250.0040.00915.52
7.1.240.0040.00915.66
7.1.230.0050.00615.52
7.1.220.0060.00615.59
7.1.210.0050.00815.66
7.1.200.0060.00615.63
7.1.190.0090.00715.46
7.1.180.0070.00715.59
7.1.170.0060.00615.47
7.1.160.0020.01215.71
7.1.150.0020.01215.64
7.1.140.0060.00815.48
7.1.130.0080.00715.46
7.1.120.0050.00915.67
7.1.110.0050.00615.61
7.1.100.1890.00615.75
7.1.90.1860.01015.64
7.1.80.1990.00815.83
7.1.70.1620.00615.38
7.1.60.1590.01321.48
7.1.50.1290.01121.34
7.1.40.0960.00821.19
7.1.30.1260.00821.25
7.1.20.1500.01221.19
7.1.10.1640.01015.24
7.1.00.0980.01215.12
7.0.330.0080.00615.33
7.0.320.0100.00215.36
7.0.310.0040.01115.11
7.0.300.0060.00615.35
7.0.290.0060.00815.37
7.0.280.0060.00515.17
7.0.270.0020.01015.27
7.0.260.0020.01215.17
7.0.250.0050.00915.23
7.0.240.1570.00815.40
7.0.230.1650.01015.48
7.0.220.1220.00815.42
7.0.210.2020.00715.21
7.0.200.1810.00715.10
7.0.190.1440.01115.08
7.0.180.1330.00614.97
7.0.170.1680.00814.95
7.0.160.1600.01014.95
7.0.150.1610.00715.09
7.0.140.1500.01015.00
7.0.130.1480.00815.06
7.0.120.1420.00815.08
7.0.110.1820.00715.04
7.0.100.1120.00814.95
7.0.90.1800.01015.07
7.0.80.1500.00615.04
7.0.70.1680.00615.06
7.0.60.1270.00814.82
7.0.50.1150.00915.07
7.0.40.1220.00613.69
7.0.30.1140.01113.82
7.0.20.1290.00313.70
7.0.10.1460.00813.74
7.0.00.1440.00913.70
5.6.400.0040.01014.00
5.6.390.0050.00813.98
5.6.380.0020.01114.31
5.6.370.0050.01114.30
5.6.360.0040.01014.17
5.6.350.0120.00314.32
5.6.340.0070.00714.27
5.6.330.0070.00314.12
5.6.320.0030.01013.95
5.6.310.0050.00614.08
5.6.300.0030.00714.26
5.6.290.0060.00814.35
5.6.280.0070.00514.30
5.6.270.0090.00314.16
5.6.260.0030.01214.07
5.6.250.0070.00514.09
5.6.240.0060.00714.21
5.6.230.0070.00514.09
5.6.220.0060.00814.28
5.6.210.0100.00514.19
5.6.200.0080.00514.29
5.6.190.0060.00813.86
5.6.180.0080.00513.99
5.6.170.0040.00714.22
5.6.160.0030.01014.00
5.6.150.0030.00914.08
5.6.140.0020.01214.07
5.6.130.0020.01014.13
5.6.120.0120.00114.15
5.6.110.0080.00414.23
5.6.100.0020.01314.21
5.6.90.0080.00514.17
5.6.80.0040.00913.95
5.6.70.0010.00914.09
5.6.60.0040.00414.02
5.6.50.0020.01114.18
5.6.40.0050.00613.86
5.6.30.0050.00914.15
5.6.20.0030.00914.10
5.6.10.0010.00814.08
5.6.00.0030.00914.10

preferences:
66.86 ms | 401 KiB | 5 Q