3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init('http://s3-ap-southeast-1.amazonaws.com/cobo-nwddev/photo/pho_0Mp1oQ.jpg'); //don't fetch the actual page, you only want headers curl_setopt($curl, CURLOPT_NOBODY, true); //stop it from outputting stuff to stdout curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // attempt to retrieve the modification date curl_setopt($curl, CURLOPT_FILETIME, true); $result = curl_exec($curl); if ($result === false) { die (curl_error($curl)); } $timestamp = curl_getinfo($curl, CURLINFO_FILETIME); if ($timestamp != -1) { //otherwise unknown echo date("Y-m-d H:i:s", $timestamp); //etc }

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.01016.63
8.3.50.0100.00821.94
8.3.40.0030.01218.89
8.3.30.0120.00318.71
8.3.20.0000.00720.34
8.3.10.0040.00423.61
8.3.00.0080.00019.85
8.2.180.0070.01118.41
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0090.00021.10
8.2.120.0090.00026.35
8.2.110.0030.00720.47
8.2.100.0060.00617.93
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0050.00517.50
8.2.60.0000.00817.79
8.2.50.0050.00318.07
8.2.40.0000.01120.41
8.2.30.0000.00720.76
8.2.20.0000.00817.76
8.2.10.0030.00617.88
8.2.00.0040.00417.93
8.1.280.0000.01925.92
8.1.270.0130.00620.25
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00622.10
8.1.230.0090.00317.71
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00617.13
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00720.58
8.1.150.0070.00018.64
8.1.140.0000.00819.52
8.1.130.0000.00717.61
8.1.120.0000.00817.24
8.1.110.0050.00317.37
8.1.100.0040.00417.23
8.1.90.0000.00717.33
8.1.80.0030.00517.34
8.1.70.0000.00817.21
8.1.60.0040.00417.52
8.1.50.0080.00017.52
8.1.40.0030.00617.47
8.1.30.0060.00317.51
8.1.20.0000.00817.50
8.1.10.0070.00017.49
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.47
8.0.270.0000.00717.08
8.0.260.0070.00017.11
8.0.250.0030.00316.97
8.0.240.0080.00016.93
8.0.230.0050.00216.95
8.0.220.0040.00416.94
8.0.210.0000.00716.96
8.0.200.0000.00816.85
8.0.190.0060.00316.86
8.0.180.0040.00416.85
8.0.170.0050.00316.82
8.0.160.0000.00716.98
8.0.150.0000.00816.88
8.0.140.0000.00716.86
8.0.130.0030.00313.25
8.0.120.0030.00516.91
8.0.110.0070.00016.94
8.0.100.0050.00216.96
8.0.90.0000.00816.92
8.0.80.0130.00316.87
8.0.70.0040.00316.70
8.0.60.0050.00216.97
8.0.50.0000.00716.80
8.0.30.0120.00616.96
8.0.20.0090.01017.40
8.0.10.0040.00416.85
8.0.00.0130.00816.80
7.4.330.0000.00516.84
7.4.320.0050.00316.52
7.4.300.0060.00316.40
7.4.290.0040.00416.43
7.4.280.0000.00916.43
7.4.270.0000.00716.52
7.4.260.0000.00816.47
7.4.250.0040.00416.41
7.4.240.0000.00716.51
7.4.230.0000.00716.38
7.4.220.0030.01516.57
7.4.210.0040.01116.57
7.4.200.0040.00416.57
7.4.160.0100.00616.51
7.4.150.0150.00417.40
7.4.140.0050.01817.86
7.4.130.0110.00716.50
7.4.120.0080.01516.55
7.4.110.0080.01316.51
7.4.100.0040.01416.59
7.4.90.0060.01216.52
7.4.80.0090.00919.39
7.4.70.0110.00716.45
7.4.60.0080.00816.65
7.4.50.0000.01616.46
7.4.40.0000.01616.24
7.4.30.0140.01116.35
7.4.00.0070.01114.56
7.3.330.0000.00713.02
7.3.320.0050.00013.11
7.3.310.0000.00716.18
7.3.300.0000.00616.24
7.3.290.0070.00916.24
7.3.280.0080.01216.25
7.3.270.0070.01117.40
7.3.260.0120.00616.22
7.3.250.0110.00916.32
7.3.240.0130.00816.50
7.3.230.0090.01316.39
7.3.210.0070.01016.59
7.3.200.0100.01316.30
7.3.190.0120.00616.28
7.3.180.0100.00616.38
7.3.170.0100.01216.36
7.3.160.0060.01516.30
7.3.10.0040.01116.84
7.3.00.0070.00716.66
7.2.330.0160.00616.58
7.2.320.0120.00616.30
7.2.310.0080.00816.48
7.2.300.0090.00916.31
7.2.290.0120.00616.27
7.2.130.0030.01216.63
7.2.120.0060.00916.92
7.2.110.0000.01616.75
7.2.100.0040.00816.90
7.2.90.0000.01216.50
7.2.80.0080.00316.29
7.2.70.0090.00416.58
7.2.60.0100.00616.70
7.2.50.0080.00416.66
7.2.40.0030.01016.62
7.2.30.0060.00916.85
7.2.20.0060.01016.84
7.2.10.0040.00816.61
7.2.00.0110.00317.94
7.1.250.0100.00715.65
7.1.200.0070.00315.56
7.1.70.0000.00816.75
7.1.60.0040.00817.13
7.1.50.0100.01016.61
7.1.00.0100.07022.48
7.0.200.0030.01016.48
7.0.100.0100.05319.95
7.0.90.0030.09019.93
7.0.80.0070.08720.00
7.0.70.0100.08319.98
7.0.60.0200.03320.04
7.0.50.0100.06720.28
7.0.40.0030.08719.98
7.0.30.0070.09019.94
7.0.20.0100.08320.05
7.0.10.0070.08020.07
7.0.00.0100.05020.09
5.6.280.0000.07321.13
5.6.250.0100.04020.56
5.6.240.0070.08020.75
5.6.230.0070.04720.59
5.6.220.0000.05320.54
5.6.210.0100.07720.68
5.6.200.0100.08021.11
5.6.190.0070.08321.07
5.6.180.0100.08020.95
5.6.170.0200.07021.01
5.6.160.0070.04721.02
5.6.150.0100.07320.99
5.6.140.0070.07320.94
5.6.130.0070.07321.10
5.6.120.0130.07720.95
5.6.110.0030.08721.02
5.6.100.0130.04021.09
5.6.90.0100.08021.02
5.6.80.0070.07020.48
5.6.70.0100.08020.42
5.6.60.0100.08020.53
5.6.50.0100.07720.47
5.6.40.0130.03720.48
5.6.30.0170.07720.39
5.6.20.0100.07720.34
5.6.10.0030.07320.37
5.6.00.0130.07020.26
5.5.380.0100.07320.34
5.5.370.0000.07720.37
5.5.360.0170.07320.50
5.5.350.0030.08320.45
5.5.340.0130.08020.79
5.5.330.0100.08320.87
5.5.320.0030.08320.91
5.5.310.0170.06320.92
5.5.300.0130.04720.88
5.5.290.0070.07020.89
5.5.280.0130.07020.80
5.5.270.0100.07320.85
5.5.260.0070.08720.81
5.5.250.0270.05020.51
5.5.240.0070.08320.11
5.5.230.0030.06320.25
5.5.220.0130.07320.24
5.5.210.0100.07720.27
5.5.200.0070.08320.18
5.5.190.0030.08720.13
5.5.180.0070.07720.22
5.5.160.0030.07020.11
5.5.150.0030.07720.21
5.5.140.0070.07720.26
5.5.130.0030.06020.16
5.5.120.0100.05720.15
5.5.110.0030.08020.09
5.5.100.0130.06720.06
5.5.90.0130.07320.05
5.5.80.0100.04320.03
5.5.70.0130.07020.13
5.5.60.0130.06020.13
5.5.50.0070.05720.13
5.5.40.0100.07720.03
5.5.30.0200.06320.13
5.5.20.0030.08320.04
5.5.10.0000.07720.05
5.5.00.0070.07019.91

preferences:
30.8 ms | 401 KiB | 5 Q