3v4l.org

run code in 300+ PHP versions simultaneously
<?php #Settings $interval = 30; $filename = 'picture.jpg'; $url = "http://www.goudenspike.nl/webcam/picture.jpg"; $fetchurl = "http://77.172.6.176:50015/picture.jpg"; #get file time if (file_exists($filename)) { $filetime = filemtime($filename); } else { copy($fetchurl,$filename); $filetime = filemtime($filename); } $time = time(); $diff = $time - $filetime; if($diff > $interval){ copy($fetchurl,$filename); } #header("Location: $url"); echo "<meta http-equiv=refresh content=30><IMG SRC=$url WIDTH=576 HEIGHT=432>"; exit; ?>

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)
7.4.00.0120.00914.93
7.3.120.0070.01114.87
7.3.110.0150.00414.84
7.3.100.0090.00614.88
7.3.90.0000.01614.84
7.3.80.0170.00315.13
7.3.70.0120.00014.73
7.3.60.0000.01714.89
7.3.50.0040.00814.89
7.3.40.0120.00314.84
7.3.30.0040.01114.89
7.3.20.0090.00616.68
7.3.10.0120.00316.79
7.3.00.0040.01116.56
7.2.250.0100.01014.73
7.2.240.0070.01314.83
7.2.230.0000.01815.07
7.2.220.0000.01315.14
7.2.210.0060.01014.94
7.2.200.0070.00715.25
7.2.190.0070.01115.05
7.2.180.0110.00715.13
7.2.170.0000.01314.95
7.2.60.0060.00616.95
7.1.330.0120.00415.77
7.1.320.0070.00715.97
7.1.310.0040.01215.93
7.1.300.0100.00715.82
7.1.290.0070.01115.95
7.1.280.0090.00315.92
7.1.270.0040.00715.74
7.1.260.0070.00315.92
7.1.200.0000.01116.04
7.1.70.0000.00917.52
7.1.60.0170.00719.82
7.1.50.0090.00917.21
7.1.00.0070.07322.43
7.0.200.0030.00716.52
7.0.140.0130.06722.02
7.0.80.0000.05020.00
7.0.70.0270.05320.00
7.0.60.0070.08020.04
7.0.50.0070.04720.23
7.0.40.0130.08020.09
7.0.30.0030.08720.19
7.0.20.0070.07320.28
7.0.10.0030.08319.98
7.0.00.0070.08720.16
5.6.280.0000.07321.07
5.6.230.0070.07720.65
5.6.220.0030.06020.70
5.6.210.0100.07720.46
5.6.200.0100.08321.27
5.6.190.0170.07321.23
5.6.180.0130.05321.18
5.6.170.0100.07720.97
5.6.160.0070.10721.27
5.6.150.0070.04721.18
5.6.140.0070.07721.26
5.6.130.0070.08321.14
5.6.120.0100.08021.13
5.6.110.0200.06321.13
5.6.100.0070.04021.11
5.6.90.0100.10021.15
5.6.80.0130.06320.48
5.6.70.0100.08020.45
5.6.60.0200.05320.48
5.6.50.0170.07320.53
5.6.40.0030.08720.59
5.6.30.0100.04320.49
5.6.20.0070.04320.50
5.6.10.0100.06020.60
5.6.00.0070.04720.49
5.5.370.0100.07020.63
5.5.360.0100.08720.41
5.5.350.0070.08020.48
5.5.340.0070.07720.98
5.5.330.0070.06320.84
5.5.320.0170.07720.89
5.5.310.0100.07720.76
5.5.300.0000.05320.88
5.5.290.0070.04321.00
5.5.280.0070.08720.86
5.5.270.0100.08320.97
5.5.260.0130.07020.94
5.5.250.0130.07020.57
5.5.240.0030.08020.22
5.5.230.0200.08020.14
5.5.220.0170.06720.34
5.5.210.0070.06720.22
5.5.200.0070.08020.12
5.5.190.0130.07320.17
5.5.180.0100.07720.11
5.5.160.0000.08320.16
5.5.150.0070.05020.24
5.5.140.0030.08320.26
5.5.130.0100.04020.36
5.5.120.0100.06320.16
5.5.110.0170.07020.25
5.5.100.0070.08320.01
5.5.90.0030.07720.20
5.5.80.0000.05719.97
5.5.70.0030.05020.15
5.5.60.0130.07320.10
5.5.50.0070.08020.23
5.5.40.0170.07020.07
5.5.30.0130.04719.98
5.5.20.0070.08020.18
5.5.10.0100.05020.21
5.5.00.0270.05720.07
5.4.450.0030.04019.26
5.4.440.0070.04319.45
5.4.430.0070.05319.41
5.4.420.0030.08019.56
5.4.410.0100.03719.46
5.4.400.0030.06319.27
5.4.390.0030.06318.96
5.4.380.0100.08719.21
5.4.370.0070.08019.03
5.4.360.0000.08019.17
5.4.350.0130.07019.10
5.4.340.0100.07019.20
5.4.320.0130.07719.07
5.4.310.0070.04019.15
5.4.300.0030.07318.91
5.4.290.0130.06318.93
5.4.280.0070.07718.93
5.4.270.0200.03719.15
5.4.260.0100.04019.04
5.4.250.0070.04019.10
5.4.240.0070.07719.14
5.4.230.0100.04318.98
5.4.220.0030.07319.14
5.4.210.0000.04718.90
5.4.200.0070.05719.04
5.4.190.0070.07718.95
5.4.180.0100.06318.89
5.4.170.0070.08018.95
5.4.160.0070.07719.13
5.4.150.0030.05019.00
5.4.140.0070.07316.21
5.4.130.0030.07316.41
5.4.120.0100.07016.39
5.4.110.0130.06716.38
5.4.100.0170.06016.34
5.4.90.0070.06316.33
5.4.80.0030.05716.53
5.4.70.0070.07716.40
5.4.60.0030.07716.51
5.4.50.0070.07316.54
5.4.40.0100.07016.49
5.4.30.0070.07016.48
5.4.20.0130.08316.34
5.4.10.0100.07316.42
5.4.00.0100.06315.71
5.3.290.0030.04714.64
5.3.280.0230.08014.64
5.3.270.0070.06014.55
5.3.260.0130.07314.59
5.3.250.0100.03714.57
5.3.240.0070.08014.58
5.3.230.0030.06314.56
5.3.220.0030.07714.55
5.3.210.0070.06714.50
5.3.200.0130.07314.57
5.3.190.0070.07314.53
5.3.180.0030.07314.45
5.3.170.0070.03714.52
5.3.160.0030.08014.50
5.3.150.0130.06714.61
5.3.140.0100.03714.50
5.3.130.0070.06714.50
5.3.120.0070.05714.47
5.3.110.0070.06714.50
5.3.100.0070.05714.01
5.3.90.0000.07713.95
5.3.80.0100.05013.93
5.3.70.0030.03714.07
5.3.60.0070.05313.98
5.3.50.0030.05313.89
5.3.40.0130.07013.95
5.3.30.0030.07713.86
5.3.20.0100.05713.67
5.3.10.0030.04313.59
5.3.00.0170.06713.68
5.2.170.0070.06311.10
5.2.160.0030.06711.02
5.2.150.0030.05011.16
5.2.140.0030.04311.09
5.2.130.0030.05711.15
5.2.120.0030.05711.04
5.2.110.0100.03310.98
5.2.100.0070.04711.11
5.2.90.0030.06711.08
5.2.80.0070.06011.13
5.2.70.0070.05711.14
5.2.60.0070.04711.10
5.2.50.0000.07010.89
5.2.40.0130.06010.98
5.2.30.0100.05710.89
5.2.20.0030.06310.97
5.2.10.0070.05710.85
5.2.00.0100.06710.74
5.1.60.0070.05310.15
5.1.50.0070.0539.89
5.1.40.0070.04310.01
5.1.30.0070.05310.32
5.1.20.0030.05710.36
5.1.10.0000.03010.05
5.1.00.0000.05710.05
5.0.50.0070.0338.52
5.0.40.0000.0408.42
5.0.30.0000.0678.34
5.0.20.0070.0238.29
5.0.10.0030.0378.23
5.0.00.0070.0608.22
4.4.90.0000.0337.24
4.4.80.0030.0377.24
4.4.70.0000.0377.24
4.4.60.0000.0337.24
4.4.50.0000.0377.24
4.4.40.0100.0407.24
4.4.30.0070.0307.24
4.4.20.0000.0237.24
4.4.10.0100.0307.24
4.4.00.0030.0537.24
4.3.110.0000.0377.24
4.3.100.0070.0277.24
4.3.90.0070.0107.24
4.3.80.0030.0537.24
4.3.70.0030.0337.24
4.3.60.0030.0337.24
4.3.50.0030.0207.24
4.3.40.0000.0577.24
4.3.30.0000.0177.24
4.3.20.0000.0207.24
4.3.10.0000.0377.24
4.3.00.0000.0307.24

preferences:
35.99 ms | 401 KiB | 5 Q