3v4l.org

run code in 300+ PHP versions simultaneously
<? ini_set('display_errors', 'On'); error_reporting(E_ALL); // determine image format print "1\n"; if (exif_imagetype('http://23mox.com/php/GoogleMapAPI/IMG_0266_mod.JPEG') == IMAGETYPE_JPEG) { print "Hey, this is a JPEG image"; } print "2"; // extra thumbnail from EXIF data, this sometimes help and you // do not need to generate your own thumbnails, most digital // cameras provide a thumbnail $thumb_image = exif_thumbnail($original_file, $width, $height, $type); print "Height: $height \nWidth: $width \nType: $type"; // save thumbnail to a file file_put_contents($path_to_thumb_image,$thumb_image); // read all available tags into an associative array $exif_data = exif_read_data($original_file, 'ANY_TAG'); foreach ($exif_data as $key => $section_data) { foreach ($section_data as $name => $val) { print "$key.$name : $val \n"; } } ?>

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.0180.00016.38
8.3.50.0070.00716.11
8.3.40.0110.00418.77
8.3.30.0070.01418.60
8.3.20.0080.00018.78
8.3.10.0040.00421.89
8.3.00.0000.00817.80
8.2.180.0120.00316.32
8.2.170.0140.00022.96
8.2.160.0070.00719.00
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0040.00421.04
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0100.00717.78
8.2.90.0040.00417.36
8.2.80.0040.00418.65
8.2.70.0000.00817.38
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0030.00622.01
8.2.30.0040.00419.06
8.2.20.0030.00617.61
8.2.10.0000.00717.87
8.2.00.0040.00417.98
8.1.280.0040.01125.92
8.1.270.0040.00423.90
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0080.00419.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0050.00317.35
8.1.190.0030.00716.96
8.1.180.0000.00818.10
8.1.170.0060.00318.69
8.1.160.0030.00318.95
8.1.150.0040.00418.76
8.1.140.0040.00419.48
8.1.130.0030.00317.33
8.1.120.0000.00717.18
8.1.110.0040.00417.22
8.1.100.0030.00517.37
8.1.90.0000.00817.25
8.1.80.0000.00717.22
8.1.70.0030.00317.36
8.1.60.0000.00817.47
8.1.50.0100.00017.43
8.1.40.0040.00417.41
8.1.30.0030.00517.36
8.1.20.0070.00017.52
8.1.10.0040.00417.38
8.1.00.0040.00417.45
8.0.300.0050.00319.66
8.0.290.0040.00416.63
8.0.280.0030.00318.38
8.0.270.0040.00417.11
8.0.260.0030.00316.69
8.0.250.0080.00016.73
8.0.240.0000.00716.80
8.0.230.0050.00216.88
8.0.220.0000.00716.82
8.0.210.0030.00316.77
8.0.200.0000.00716.82
8.0.190.0030.00516.84
8.0.180.0040.00416.78
8.0.170.0040.00416.67
8.0.160.0000.00716.68
8.0.150.0070.00016.73
8.0.140.0000.00816.73
8.0.130.0030.00313.39
8.0.120.0000.00716.62
8.0.110.0030.00616.74
8.0.100.0060.00316.83
8.0.90.0000.00816.77
8.0.80.0130.00316.70
8.0.70.0020.00516.88
8.0.60.0030.00616.73
8.0.50.0000.00816.64
8.0.30.0080.01316.88
8.0.20.0120.01217.40
8.0.10.0000.00716.79
8.0.00.0080.00916.70
7.4.330.0020.00215.08
7.4.320.0030.00316.48
7.4.300.0000.00616.50
7.4.290.0070.00016.48
7.4.280.0030.00616.34
7.4.270.0000.00716.32
7.4.260.0030.00316.30
7.4.250.0030.00516.45
7.4.240.0000.00716.44
7.4.230.0000.00716.45
7.4.220.0140.01816.39
7.4.210.0040.01016.55
7.4.200.0030.00316.35
7.4.160.0160.00316.40
7.4.150.0160.00717.40
7.4.140.0120.00517.86
7.4.130.0180.00316.49
7.4.120.0120.00916.33
7.4.110.0130.00416.36
7.4.100.0140.00416.34
7.4.90.0120.00616.35
7.4.80.0100.00719.39
7.4.70.0060.01216.40
7.4.60.0100.00616.30
7.4.50.0040.01416.45
7.4.40.0130.00316.45
7.4.30.0120.00616.11
7.4.00.0070.00714.66
7.3.330.0070.00013.00
7.3.320.0040.00413.02
7.3.310.0050.00216.14
7.3.300.0000.00715.97
7.3.290.0110.00716.12
7.3.280.0100.00616.14
7.3.270.0120.00617.40
7.3.260.0090.00916.16
7.3.250.0140.00516.37
7.3.240.0130.00716.19
7.3.230.0070.01016.39
7.3.210.0130.00316.48
7.3.200.0110.00616.18
7.3.190.0140.00316.18
7.3.180.0070.01016.09
7.3.170.0120.00816.23
7.3.160.0070.01016.39
7.2.330.0040.01316.38
7.2.320.0160.00616.50
7.2.310.0080.01216.60
7.2.300.0120.00416.30
7.2.290.0130.00316.11
7.2.60.0140.00516.89
7.2.00.0060.00319.41
7.1.200.0080.00815.41
7.1.100.0030.00718.00
7.1.70.0030.00717.07
7.1.60.0150.01119.25
7.1.50.0000.01016.84
7.1.00.0100.07022.31
7.0.200.0720.00314.62
7.0.60.0000.07721.58
7.0.50.0100.05720.26
7.0.40.0270.06020.34
7.0.30.0130.05720.34
7.0.20.0400.05720.34
7.0.10.0530.06320.33
7.0.00.0330.05020.22
5.6.280.0030.07321.04
5.6.210.0030.06720.71
5.6.200.0100.06721.07
5.6.190.0430.04321.17
5.6.180.0130.05321.11
5.6.170.0330.06021.03
5.6.160.0330.05321.15
5.6.150.0400.06021.12
5.6.140.0530.05321.07
5.6.130.0370.06021.17
5.6.120.0470.06321.07
5.6.110.0570.06321.05
5.6.100.0330.06321.06
5.6.90.0600.07721.18
5.6.80.0470.05320.34
5.6.70.0170.06020.54
5.6.60.0230.06020.48
5.6.50.0130.06320.43
5.6.40.0530.05720.48
5.6.30.0400.06020.40
5.6.20.0200.07020.47
5.6.10.0170.05720.39
5.6.00.0370.05720.39
5.5.350.4130.03320.32
5.5.340.0230.06020.86
5.5.330.0300.05021.00
5.5.320.0170.05021.00
5.5.310.0300.05720.86
5.5.300.0230.05720.77
5.5.290.0530.05720.70
5.5.280.0670.06720.84
5.5.270.0330.06720.85
5.5.260.0430.05320.88
5.5.250.0530.06720.83
5.5.240.0530.04720.15
5.5.230.0370.06020.25
5.5.220.0370.06020.27
5.5.210.0330.05320.22
5.5.200.0500.05320.20
5.5.190.0500.05020.38
5.5.180.0270.05720.20
5.5.160.0330.05020.38
5.5.150.0430.05320.21
5.5.140.0300.06020.20
5.5.130.0330.05320.31
5.5.120.0270.06020.20
5.5.110.0130.07020.16
5.5.100.0200.06020.11
5.5.90.0270.04320.13
5.5.80.0300.04720.13
5.5.70.0370.06020.15
5.5.60.0330.05320.16
5.5.50.0200.06020.25
5.5.40.0300.04720.09
5.5.30.0430.05720.25
5.5.20.0200.05320.08
5.5.10.0400.06320.13
5.5.00.0230.05020.04

preferences:
80.95 ms | 400 KiB | 5 Q