3v4l.org

run code in 300+ PHP versions simultaneously
<?php // if file is a GIF line below should return IMAGETYPE_GIF $image_type = exif_imagetype('image.gif'); if ($image_type) == IMAGETYPE_GIF) { $mime = image_type_to_mime_type(); // will produce "image/gif" as String. echo 'The picture is a gif, with a mime type of ' . $mime; }

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)
5.4.270.0080.04912.36
5.4.260.0060.04412.36
5.4.250.0070.03612.36
5.4.240.0060.03612.36
5.4.230.0060.04112.36
5.4.220.0060.03912.36
5.4.210.0070.03412.36
5.4.200.0060.03712.35
5.4.190.0040.03712.35
5.4.180.0090.03412.35
5.4.170.0040.04612.36
5.4.160.0040.03812.35
5.4.150.0080.03412.34
5.4.140.0060.03812.04
5.4.130.0050.04512.02
5.4.120.0040.03811.98
5.4.110.0050.03611.98
5.4.100.0080.03711.98
5.4.90.0050.03811.98
5.4.80.0120.03211.98
5.4.70.0050.03611.97
5.4.60.0050.03711.97
5.4.50.0030.03911.98
5.4.40.0060.03511.96
5.4.30.0020.03911.96
5.4.20.0060.03611.95
5.4.10.0060.03611.96
5.4.00.0070.03711.46
5.3.280.0070.03712.71
5.3.270.0040.04412.72
5.3.260.0090.04312.72
5.3.250.0080.03912.72
5.3.240.0060.03712.72
5.3.230.0080.03712.71
5.3.220.0070.03812.68
5.3.210.0060.04012.68
5.3.200.0120.05012.68
5.3.190.0050.04412.68
5.3.180.0100.04112.68
5.3.170.0030.04112.67
5.3.160.0100.04212.68
5.3.150.0090.04212.67
5.3.140.0070.04612.66
5.3.130.0120.05112.66
5.3.120.0030.05712.66
5.3.110.0110.05112.66
5.3.100.0080.04912.12
5.3.90.0050.03912.08
5.3.80.0110.04212.07
5.3.70.0040.05012.07
5.3.60.0140.04112.06
5.3.50.0090.04612.00
5.3.40.0130.04612.00
5.3.30.0110.04411.94
5.3.20.0130.04111.70
5.3.10.0100.04611.66
5.3.00.0040.03811.64

preferences:
138.51 ms | 1394 KiB | 7 Q