3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($width, $height, $type) = getimagesize($_FILES["picture"]['tmp_name']); if(isset($width, $height, $type)) echo 1;

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.0070.00718.30
8.3.50.0150.00821.25
8.3.40.0090.00618.99
8.3.30.0110.01119.09
8.3.20.0020.00520.16
8.3.10.0000.00823.54
8.3.00.0080.00019.25
8.2.180.0110.01116.63
8.2.170.0110.00322.96
8.2.160.0070.01120.39
8.2.150.0000.00724.18
8.2.140.0090.00024.66
8.2.130.0000.00926.16
8.2.120.0080.00022.11
8.2.110.0110.00721.13
8.2.100.0060.00618.03
8.2.90.0030.00618.03
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0080.00318.05
8.2.50.0060.00319.48
8.2.40.0040.00418.16
8.2.30.0030.00718.20
8.2.20.0000.00717.87
8.2.10.0050.00218.12
8.2.00.0040.00417.83
8.1.280.0070.01425.92
8.1.270.0040.00423.92
8.1.260.0080.00026.35
8.1.250.0030.00328.09
8.1.240.0090.00022.48
8.1.230.0040.00720.95
8.1.220.0030.00517.80
8.1.210.0090.00018.79
8.1.200.0100.00317.13
8.1.190.0030.00617.10
8.1.180.0000.00718.10
8.1.170.0050.00318.54
8.1.160.0050.00221.92
8.1.150.0000.00818.74
8.1.140.0000.00717.29
8.1.130.0000.00717.87
8.1.120.0000.00717.30
8.1.110.0070.00017.40
8.1.100.0070.00017.43
8.1.90.0030.00617.44
8.1.80.0050.00217.27
8.1.70.0070.00017.25
8.1.60.0080.00017.52
8.1.50.0040.00417.33
8.1.40.0020.00517.34
8.1.30.0000.00817.62
8.1.20.0070.00017.49
8.1.10.0000.00717.39
8.1.00.0040.00417.36
8.0.300.0040.00419.93
8.0.290.0060.00316.75
8.0.280.0000.00818.44
8.0.270.0000.00617.20
8.0.260.0030.00317.30
8.0.250.0000.00717.02
8.0.240.0070.00017.00
8.0.230.0030.00316.88
8.0.220.0070.00016.92
8.0.210.0060.00016.90
8.0.200.0030.00316.86
8.0.190.0030.00617.02
8.0.180.0000.00717.00
8.0.170.0040.00417.01
8.0.160.0030.00517.02
8.0.150.0000.00716.85
8.0.140.0040.00416.82
8.0.130.0000.00513.32
8.0.120.0040.00416.87
8.0.110.0080.00016.93
8.0.100.0030.00316.82
8.0.90.0000.00717.02
8.0.80.0080.01116.94
8.0.70.0080.00016.96
8.0.60.0000.00716.79
8.0.50.0000.00716.80
8.0.30.0050.01417.11
8.0.20.0140.00917.40
8.0.10.0030.00317.02
8.0.00.0080.01016.75
7.4.330.0000.00615.02
7.4.320.0030.00316.61
7.4.300.0030.00316.59
7.4.290.0040.00316.51
7.4.280.0070.00016.45
7.4.270.0040.00416.50
7.4.260.0030.00616.63
7.4.250.0040.00416.48
7.4.240.0020.00516.52
7.4.230.0030.00316.39
7.4.220.0040.01516.53
7.4.210.0150.00616.52
7.4.200.0000.00716.61
7.4.160.0060.01016.40
7.4.150.0090.00917.40
7.4.140.0070.01317.86
7.4.130.0110.00716.60
7.4.120.0090.00916.63
7.4.110.0030.01316.57
7.4.100.0030.01316.53
7.4.90.0070.01016.44
7.4.80.0070.01019.39
7.4.70.0120.00916.45
7.4.60.0140.00716.61
7.4.50.0040.00416.66
7.4.40.0110.00416.52
7.4.30.0120.00616.68
7.4.00.0030.01315.05
7.3.330.0030.00313.02
7.3.320.0020.00213.14
7.3.310.0030.00316.22
7.3.300.0000.00616.30
7.3.290.0090.00816.25
7.3.280.0040.01116.28
7.3.270.0090.00917.40
7.3.260.0100.00716.38
7.3.250.0120.00616.51
7.3.240.0120.01216.51
7.3.230.0080.01216.48
7.3.210.0100.00516.23
7.3.200.0060.01319.39
7.3.190.0170.00016.65
7.3.180.0000.01516.42
7.3.170.0200.00016.50
7.3.160.0090.00916.61
7.3.10.0160.00816.00
7.3.00.0150.01216.31
7.2.330.0120.00616.74
7.2.320.0090.01316.57
7.2.310.0100.00616.62
7.2.300.0120.00616.61
7.2.290.0100.00816.33
7.2.130.0190.00816.48
7.2.120.0170.00716.64
7.2.110.0180.00716.70
7.2.100.0140.00916.64
7.2.90.0160.00816.50
7.2.80.0170.00716.54
7.2.70.0210.00316.70
7.2.60.0220.00616.54
7.2.50.0270.00016.68
7.2.40.0190.00316.70
7.2.30.0170.00316.72
7.2.20.0150.01216.82
7.2.10.0140.00716.31
7.2.00.0080.01118.10
7.1.250.0100.00615.61
7.1.100.0070.00717.79
7.1.70.0050.00317.22
7.1.60.0100.01319.11
7.1.50.0100.01316.80
7.1.00.0000.07722.43
7.0.200.0030.00516.76
7.0.140.0000.07722.11
7.0.60.0270.08019.90
7.0.50.0030.08317.84
7.0.40.0130.08720.24
7.0.30.0300.06020.18
7.0.20.0230.08020.13
7.0.10.0100.07020.16
7.0.00.0070.08020.17
5.6.280.0130.06321.07
5.6.210.0130.07320.76
5.6.200.0070.04018.17
5.6.190.0030.05720.57
5.6.180.0270.07320.63
5.6.170.1130.05020.47
5.6.160.0230.06720.49
5.6.150.0130.07018.12
5.6.140.0070.06018.18
5.6.130.0070.08018.11
5.6.120.0230.06720.99
5.6.110.0000.04321.13
5.6.100.0170.04021.01
5.6.90.0170.07721.12
5.6.80.0130.07020.50
5.5.350.0200.02720.38
5.5.340.0100.05017.98
5.5.330.0100.05020.21
5.5.320.0330.07720.27
5.5.310.0070.05020.24
5.5.300.0100.08018.00
5.5.290.0100.04317.96
5.5.280.0130.08020.97
5.5.270.0200.08020.79
5.5.260.0130.03720.75
5.5.250.0070.03720.57
5.5.240.0200.06320.16
5.4.450.0800.07319.26
5.4.440.0770.06019.58
5.4.430.0170.04719.57
5.4.420.0830.05319.13
5.4.410.0870.04719.34
5.4.400.0100.05019.31
5.4.390.0600.06718.99
5.4.380.0700.05718.78
5.4.370.0770.05719.25
5.4.360.0530.05719.01
5.4.350.0570.06319.31
5.4.340.0070.03511.97
5.4.320.0080.03612.45
5.4.310.0080.03812.45
5.4.300.0100.03212.46
5.4.290.0080.03512.45
5.4.280.0020.03812.35
5.4.270.0110.03912.35
5.4.260.0090.04112.35
5.4.250.0060.04712.35
5.4.240.0060.03612.35
5.4.230.0080.03612.34
5.4.220.0040.03912.34
5.4.210.0060.03712.34
5.4.200.0050.03912.34
5.4.190.0080.04212.34
5.4.180.0050.03712.34
5.4.170.0050.03612.35
5.4.160.0070.03712.34
5.4.150.0050.03612.34
5.4.140.0110.03212.02
5.4.130.0070.03612.02
5.4.120.0020.03711.97
5.4.110.0030.03711.96
5.4.100.0080.03211.97
5.4.90.0080.03411.97
5.4.80.0070.03511.97
5.4.70.0040.03511.96
5.4.60.0070.03211.96
5.4.50.0050.03511.96
5.4.40.0050.03411.95
5.4.30.0090.03211.95
5.4.20.0100.03211.95
5.4.10.0070.03711.95
5.4.00.0080.03711.43
5.3.290.0100.03612.80
5.3.280.0070.03712.71
5.3.270.0080.03912.73
5.3.260.0080.03812.72
5.3.250.0090.03912.72
5.3.240.0090.03512.72
5.3.230.0080.03612.71
5.3.220.0060.04012.68
5.3.210.0070.04812.68
5.3.200.0090.03312.68
5.3.190.0120.03512.67
5.3.180.0060.03712.67
5.3.170.0070.03612.67
5.3.160.0090.03512.67
5.3.150.0080.04012.68
5.3.140.0040.03912.66
5.3.130.0060.03912.66
5.3.120.0080.03612.66
5.3.110.0110.03812.66
5.3.100.0070.03612.12
5.3.90.0060.03612.09
5.3.80.0030.04012.07
5.3.70.0060.03712.07
5.3.60.0070.03512.06
5.3.50.0050.03912.00
5.3.40.0060.03612.00
5.3.30.0060.03411.94
5.3.20.0110.03011.72
5.3.10.0070.03311.69
5.3.00.0050.04511.68
5.2.170.0080.0269.18
5.2.160.0090.0359.18
5.2.150.0050.0309.18
5.2.140.0060.0309.18
5.2.130.0050.0299.14
5.2.120.0060.0279.14
5.2.110.0030.0309.15
5.2.100.0090.0269.14
5.2.90.0050.0319.14
5.2.80.0110.0359.13
5.2.70.0040.0319.14
5.2.60.0090.0299.09
5.2.50.0020.0359.06
5.2.40.0050.0309.03
5.2.30.0050.0339.01
5.2.20.0110.0289.00
5.2.10.0070.0298.91
5.2.00.0040.0368.78
5.1.60.0020.0258.07
5.1.50.0100.0258.06
5.1.40.0030.0298.04
5.1.30.0050.0298.39
5.1.20.0060.0268.42
5.1.10.0080.0248.14
5.1.00.0080.0258.14
5.0.50.0030.0226.62
5.0.40.0040.0196.48
5.0.30.0030.0326.29
5.0.20.0050.0276.26
5.0.10.0040.0196.24
5.0.00.0050.0286.23
4.4.90.0020.0174.78
4.4.80.0010.0164.76
4.4.70.0030.0194.75
4.4.60.0050.0194.75
4.4.50.0010.0164.77
4.4.40.0020.0254.71
4.4.30.0060.0124.76
4.4.20.0070.0114.85
4.4.10.0000.0184.85
4.4.00.0040.0234.75
4.3.110.0050.0184.67
4.3.100.0030.0154.67
4.3.90.0040.0134.63
4.3.80.0020.0254.58
4.3.70.0010.0174.63
4.3.60.0020.0154.63
4.3.50.0030.0184.63
4.3.40.0050.0254.54
4.3.30.0000.0193.29
4.3.20.0020.0163.26
4.3.10.0020.0163.22
4.3.00.0130.0237.11

preferences:
33.87 ms | 401 KiB | 5 Q