3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filepath = "../uploads/".$file_name; $image = fopen($filepath, "rb"); echo file_exists($filepath).' '; echo filesize($filepath). 'bytes '; echo exif_read_data($filepath). ' ';

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.0060.00916.75
8.3.50.0140.00821.14
8.3.40.0140.00018.81
8.3.30.0120.00418.84
8.3.20.0040.00420.18
8.3.10.0000.00821.77
8.3.00.0050.00323.65
8.2.180.0120.00316.88
8.2.170.0040.01422.96
8.2.160.0100.00320.57
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0040.00419.55
8.2.120.0040.00426.35
8.2.110.0090.00022.05
8.2.100.0030.00717.93
8.2.90.0080.00019.08
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0000.01218.07
8.2.40.0080.00022.37
8.2.30.0030.00319.33
8.2.20.0040.00417.76
8.2.10.0000.00917.95
8.2.00.0000.00818.07
8.1.280.0180.00025.92
8.1.270.0000.00823.99
8.1.260.0080.00028.09
8.1.250.0090.00028.09
8.1.240.0060.00323.96
8.1.230.0040.00819.09
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0060.00317.36
8.1.180.0040.00418.10
8.1.170.0030.00518.49
8.1.160.0040.00420.69
8.1.150.0050.00318.81
8.1.140.0000.00819.51
8.1.130.0030.00317.63
8.1.120.0070.00017.46
8.1.110.0050.00217.47
8.1.100.0000.00817.38
8.1.90.0030.00517.42
8.1.80.0000.00817.52
8.1.70.0070.00017.45
8.1.60.0050.00317.54
8.1.50.0030.00517.57
8.1.40.0040.00417.54
8.1.30.0050.00317.70
8.1.20.0000.01117.49
8.1.10.0000.00717.48
8.1.00.0050.00217.51
8.0.300.0090.00018.77
8.0.290.0040.00416.71
8.0.280.0070.00018.52
8.0.270.0040.00417.24
8.0.260.0060.00017.26
8.0.250.0030.00316.99
8.0.240.0000.00816.98
8.0.230.0000.00716.96
8.0.220.0030.00317.04
8.0.210.0030.00517.04
8.0.200.0040.00416.95
8.0.190.0030.00616.99
8.0.180.0090.00017.08
8.0.170.0040.00417.13
8.0.160.0000.00717.09
8.0.150.0040.00416.97
8.0.140.0000.00716.99
8.0.130.0030.00313.37
8.0.120.0080.00215.17
8.0.110.0050.00515.28
8.0.100.0020.00515.16
8.0.90.0100.00015.22
8.0.80.0040.00915.20
8.0.70.0020.00715.10
8.0.60.0040.00515.14
8.0.50.0070.00315.12
8.0.30.0060.00915.79
8.0.20.0090.00716.40
8.0.10.0070.00315.27
8.0.00.0080.01215.91
7.4.330.0030.00316.83
7.4.320.0000.00616.44
7.4.300.0000.00716.53
7.4.290.0000.00716.50
7.4.280.0000.00916.60
7.4.270.0040.00416.52
7.4.260.0060.00016.62
7.4.250.0070.00414.84
7.4.240.0030.00615.42
7.4.230.0040.00614.94
7.4.220.0070.00914.91
7.4.210.0050.01215.77
7.4.200.0060.00414.94
7.4.190.0040.00813.41
7.4.180.0040.00413.25
7.4.160.0090.00715.04
7.4.150.0050.01115.32
7.4.140.0060.00816.32
7.4.130.0110.00715.46
7.4.120.0080.00715.60
7.4.110.0070.00914.85
7.4.100.0070.00714.90
7.4.90.0120.00514.87
7.4.80.0080.01116.37
7.4.70.0060.00814.86
7.4.60.0110.00414.87
7.4.50.0080.00314.78
7.4.40.0100.00314.76
7.4.30.0100.00814.92
7.4.20.0060.00613.20
7.4.10.0080.00013.20
7.4.00.0060.00714.40
7.3.330.0000.00513.29
7.3.320.0050.00013.31
7.3.310.0020.00614.80
7.3.300.0020.00614.86
7.3.290.0000.00814.78
7.3.280.0080.00915.61
7.3.270.0080.00615.25
7.3.260.0080.00514.93
7.3.250.0120.00615.54
7.3.240.0110.00715.49
7.3.230.0070.00714.75
7.3.220.0050.00513.04
7.3.210.0100.00314.66
7.3.200.0080.00414.81
7.3.190.0080.00414.63
7.3.180.0040.00814.71
7.3.170.0050.00914.71
7.3.160.0070.00714.73
7.3.150.0110.00012.94
7.3.140.0130.00013.25
7.3.130.0000.01213.21
7.3.120.0060.00714.02
7.3.110.0080.00413.81
7.3.100.0080.00413.90
7.3.90.0060.00714.21
7.3.80.0080.00514.05
7.3.70.0050.00514.01
7.3.60.0040.00713.86
7.3.50.0030.00913.95
7.3.40.0070.00414.06
7.3.30.0060.00614.09
7.3.20.0070.00615.80
7.3.10.0080.00315.82
7.3.00.0050.00515.89
7.2.340.0000.01113.19
7.2.330.0050.01014.95
7.2.320.0120.00314.83
7.2.310.0060.00914.94
7.2.300.0030.01315.06
7.2.290.0160.00314.88
7.2.280.0110.00213.07
7.2.270.0120.00013.20
7.2.260.0130.00013.05
7.2.250.0060.00814.03
7.2.240.0090.00714.04
7.2.230.0070.00714.16
7.2.220.0040.00814.12
7.2.210.0050.00613.98
7.2.200.0080.00714.26
7.2.190.0020.01114.23
7.2.180.0060.00714.07
7.2.170.0080.00514.32
7.2.160.0000.01213.49
7.2.150.0070.00615.09
7.2.140.0060.00615.08
7.2.130.0080.00415.35
7.2.120.0120.00015.28
7.2.110.0100.00215.26
7.2.100.0060.00615.27
7.2.90.0070.00715.33
7.2.80.0130.00015.12
7.2.70.0100.00315.06
7.2.60.0050.00916.06
7.2.50.0060.00615.22
7.2.40.0080.00415.14
7.2.30.0070.00615.21
7.2.20.0130.00015.28
7.2.10.0140.00015.20
7.2.00.0030.00817.23
7.1.330.0110.00214.87
7.1.320.0050.00915.07
7.1.310.0070.00414.85
7.1.300.0110.00014.97
7.1.290.0100.00314.90
7.1.280.0110.00314.91
7.1.270.0080.00615.12
7.1.260.0080.00414.90
7.1.250.0090.00214.16
7.1.240.0000.01214.17
7.1.230.0090.00314.16
7.1.220.0100.00214.13
7.1.210.0060.00614.21
7.1.200.0060.00614.87
7.1.190.0100.00214.13
7.1.180.0060.00614.10
7.1.170.0080.00414.08
7.1.160.0120.00013.97
7.1.150.0120.00014.11
7.1.140.0060.00614.09
7.1.130.0100.00214.10
7.1.120.0090.00314.15
7.1.110.0120.00014.00
7.1.100.0050.00715.94
7.1.90.0130.00014.24
7.1.80.0040.00814.04
7.1.70.0080.00515.63
7.1.60.0070.01216.77
7.1.50.0090.00915.54
7.1.40.0090.00314.20
7.1.30.0100.00314.14
7.1.20.0040.00914.13
7.1.10.0110.00313.95
7.1.00.0080.03818.17
7.0.330.0090.00314.09
7.0.320.0100.00314.10
7.0.310.0100.00414.11
7.0.300.0120.00014.06
7.0.290.0100.00514.11
7.0.280.0110.00314.04
7.0.270.0140.00014.09
7.0.260.0060.00614.07
7.0.250.0110.00314.21
7.0.240.0140.00014.20
7.0.230.0100.00314.20
7.0.220.0080.00514.21
7.0.210.0130.00014.06
7.0.200.0040.00815.54
7.0.190.0050.01014.11
7.0.180.0150.00014.19
7.0.170.0120.00014.07
7.0.160.0070.00714.16
7.0.150.0100.00313.99
7.0.140.0140.00014.04
7.0.130.0090.00514.17
7.0.120.0080.00514.00
7.0.110.0090.00413.90
7.0.100.0090.00514.08
7.0.90.0050.01013.97
7.0.80.0110.00413.93
7.0.70.0130.00013.95
7.0.60.0140.04317.85
7.0.50.0060.02315.86
7.0.40.0090.04417.20
7.0.30.0200.03617.20
7.0.20.0190.04317.13
7.0.10.0090.04617.04
7.0.00.0050.03817.05
5.6.400.0090.00512.51
5.6.390.0090.00312.50
5.6.380.0080.00512.51
5.6.370.0090.00412.59
5.6.360.0090.00412.64
5.6.350.0130.00012.48
5.6.340.0000.01412.79
5.6.330.0100.00312.81
5.6.320.0090.00312.81
5.6.310.0090.00412.81
5.6.300.0090.00312.30
5.6.290.0110.00312.59
5.6.280.0040.01916.65
5.6.270.0080.00512.68
5.6.260.0090.00312.61
5.6.250.0120.00012.49
5.6.240.0070.00712.61
5.6.230.0130.00012.63
5.6.220.0080.00412.57
5.6.210.0090.04316.60
5.6.200.0080.02815.46
5.6.190.0070.02916.42
5.6.180.0190.02316.46
5.6.170.0110.02316.49
5.6.160.0040.03316.48
5.6.150.0080.03815.45
5.6.140.0120.04215.29
5.6.130.0070.02215.32
5.6.120.0050.04816.85
5.6.110.0110.04816.71
5.6.100.0070.04416.85
5.6.90.0100.04216.82
5.6.80.0050.02016.34
5.6.70.0000.01212.75
5.6.60.0110.00012.65
5.6.50.0110.00012.42
5.6.40.0080.00312.55
5.6.30.0070.00412.57
5.6.20.0090.00212.38
5.6.10.0070.00412.48
5.6.00.0110.00012.63
5.5.380.0000.01112.82
5.5.370.0060.00612.71
5.5.360.0000.01112.29
5.5.350.0200.03516.41
5.5.340.0080.02315.14
5.5.330.0100.04016.44
5.5.320.0320.03716.31
5.5.310.0190.04116.31
5.5.300.0040.02515.16
5.5.290.0160.03515.16
5.5.280.0040.02616.66
5.5.270.0090.04016.55
5.5.260.0070.04516.60
5.5.250.0090.03616.67
5.5.240.0140.03716.39
5.5.230.0110.00012.59
5.5.220.0070.00512.57
5.5.210.0050.00512.63
5.5.200.0040.00712.30
5.5.190.0100.00012.68
5.5.180.0070.00412.66
5.5.170.0050.00512.59
5.5.160.0080.00312.35
5.5.150.0090.00212.27
5.5.140.0080.00312.29
5.5.130.0110.00012.54
5.5.120.0090.00212.21
5.5.110.0110.00012.34
5.5.100.0090.00212.48
5.5.90.0040.00712.52
5.5.80.0080.00312.59
5.5.70.0100.00012.80
5.5.60.0070.00412.67
5.5.50.0050.00512.55
5.5.40.0050.00512.73
5.5.30.0110.00012.69
5.5.20.0070.00412.39
5.5.10.0100.00012.29
5.5.00.0050.00512.48

preferences:
61.47 ms | 401 KiB | 5 Q