3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (Visit('http://www.google.com')) { echo "Up and running!"; } else { echo "Woops, nothing found there."; } //returns true, if domain is availible, false if not function Visit($url){ $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";$ch=curl_init(); curl_setopt ($ch, CURLOPT_URL,$url ); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch,CURLOPT_VERBOSE,false); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch,CURLOPT_SSLVERSION,3); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, FALSE); $page=curl_exec($ch); //echo curl_error($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if($httpcode>=200 && $httpcode<300) return true; else return false; } if (Visit("http://www.google.com")) echo "Website OK"."n"; else echo "Website DOWN"; ?>

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.70.0070.00718.30
8.3.60.0040.01116.75
8.3.50.0070.01121.92
8.3.40.0120.00318.67
8.3.30.0070.00719.01
8.3.20.0040.00419.97
8.3.10.0040.00423.64
8.3.00.0050.00319.78
8.2.180.0100.00716.75
8.2.170.0110.00322.96
8.2.160.0140.00020.53
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00420.95
8.2.110.0180.00422.27
8.2.100.0070.00417.97
8.2.90.0070.00319.23
8.2.80.0050.00317.97
8.2.70.0070.00317.63
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0090.00018.03
8.2.30.0070.00018.20
8.2.20.0000.00817.74
8.2.10.0040.00418.06
8.2.00.0030.00517.77
8.1.280.0100.00725.92
8.1.270.0090.00623.87
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00423.96
8.1.230.0070.00319.16
8.1.220.0100.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.51
8.1.160.0030.00522.04
8.1.150.0070.00018.71
8.1.140.0000.00717.41
8.1.130.0000.00717.84
8.1.120.0050.00217.41
8.1.110.0030.00617.46
8.1.100.0000.00717.32
8.1.90.0000.00817.42
8.1.80.0070.00017.26
8.1.70.0000.00717.29
8.1.60.0000.00717.55
8.1.50.0090.00017.52
8.1.40.0020.00517.44
8.1.30.0080.00017.68
8.1.20.0030.00517.64
8.1.10.0000.00817.59
8.1.00.0030.00517.42
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.42
8.0.270.0000.00717.20
8.0.260.0030.00317.21
8.0.250.0030.00316.98
8.0.240.0000.00816.91
8.0.230.0030.00316.84
8.0.220.0070.00016.80
8.0.210.0040.00416.85
8.0.200.0000.00616.96
8.0.190.0070.00016.86
8.0.180.0060.00316.95
8.0.170.0030.00516.91
8.0.160.0040.00416.86
8.0.150.0040.00416.82
8.0.140.0070.00016.77
8.0.130.0000.00513.38
8.0.120.0040.00416.80
8.0.110.0050.00216.90
8.0.100.0080.00016.92
8.0.90.0000.00816.81
8.0.80.0060.00916.91
8.0.70.0000.00816.94
8.0.60.0050.00216.81
8.0.50.0040.00416.93
8.0.30.0140.00517.01
8.0.20.0130.00617.40
8.0.10.0060.00316.83
8.0.00.0120.00416.75
7.4.330.0000.00515.09
7.4.320.0030.00316.41
7.4.300.0000.00716.54
7.4.290.0000.00716.63
7.4.280.0080.00016.60
7.4.270.0040.00416.50
7.4.260.0040.00416.63
7.4.250.0040.00416.43
7.4.240.0040.00416.61
7.4.230.0030.00316.27
7.4.220.0150.00316.56
7.4.210.0090.00616.73
7.4.200.0030.00316.36
7.4.160.0100.00716.65
7.4.150.0180.00617.40
7.4.140.0150.00417.86
7.4.130.0100.00716.54
7.4.120.0080.01216.54
7.4.110.0120.00916.59
7.4.100.0070.01016.54
7.4.90.0100.00716.49
7.4.80.0090.01019.39
7.4.70.0070.01416.51
7.4.60.0150.00016.52
7.4.50.0060.00316.20
7.4.40.0100.00616.58
7.4.30.0130.00316.70
7.4.00.0060.00815.08
7.3.330.0030.00513.33
7.3.320.0000.00513.40
7.3.310.0050.00216.14
7.3.300.0050.00316.21
7.3.290.0100.01116.27
7.3.280.0090.00816.28
7.3.270.0120.00417.40
7.3.260.0150.00616.28
7.3.250.0080.01016.27
7.3.240.0100.01316.57
7.3.230.0120.00416.39
7.3.210.0070.01016.42
7.3.200.0070.01319.39
7.3.190.0080.01216.44
7.3.180.0100.01016.38
7.3.170.0070.01116.33
7.3.160.0070.00816.35
7.3.120.0030.01215.01
7.3.110.0090.00914.66
7.3.100.0100.00314.71
7.3.90.0000.01215.02
7.3.80.0040.01114.95
7.3.70.0030.01014.97
7.3.60.0090.00614.91
7.3.50.0120.00314.63
7.3.40.0060.00614.71
7.3.30.0140.00014.84
7.3.20.0030.00716.48
7.3.10.0060.00816.60
7.3.00.0090.00416.70
7.2.330.0090.00916.59
7.2.320.0040.01216.55
7.2.310.0070.01316.63
7.2.300.0030.01516.30
7.2.290.0130.00316.42
7.2.250.0040.01214.58
7.2.240.0100.01015.07
7.2.230.0090.00615.21
7.2.220.0040.00715.10
7.2.210.0040.01114.96
7.2.200.0060.01014.86
7.2.190.0070.01014.89
7.2.180.0060.00915.02
7.2.170.0000.01314.80
7.2.60.0090.00916.88
7.2.00.0130.00318.99
7.1.330.0100.00715.59
7.1.320.0070.00715.60
7.1.310.0120.00615.75
7.1.300.0070.01015.48
7.1.290.0060.01115.68
7.1.280.0080.00615.67
7.1.270.0060.00615.64
7.1.260.0080.00415.31
7.1.200.0120.00315.61
7.1.100.0030.01217.96
7.1.70.0040.00417.10
7.1.60.0030.01419.70
7.1.50.0100.01416.85
7.1.00.0000.08022.57
7.0.200.0000.00916.66
7.0.140.0070.06322.23
7.0.60.0100.07719.84
7.0.50.0130.07717.84
7.0.40.0070.04320.21
7.0.30.0270.05720.30
7.0.20.0230.03720.06
7.0.10.0070.05020.10
7.0.00.0070.06720.18
5.6.280.0100.07021.01
5.6.210.0070.07320.78
5.6.200.0170.06718.15
5.6.190.0070.04020.63
5.6.180.0200.08020.61
5.6.170.0230.05020.55
5.6.160.0030.06020.56
5.6.150.0000.08318.13
5.6.140.0000.04318.13
5.6.130.0100.08718.27
5.6.120.0030.09021.02
5.6.110.0070.04020.99
5.6.100.0000.04721.05
5.6.90.0100.06720.99
5.6.80.0070.03720.38
5.6.70.3470.03320.37
5.5.350.0100.07720.44
5.5.340.0030.07717.94
5.5.330.0070.06720.32
5.5.320.0300.06320.32
5.5.310.0300.02720.19
5.5.300.0100.08017.98
5.5.290.0100.06717.99
5.5.280.0170.07720.89
5.5.270.0200.07320.91
5.5.260.0100.08720.74
5.5.250.0130.07720.79
5.5.240.0070.07720.25
5.4.450.0500.04719.20
5.4.440.0300.04019.52
5.4.430.0300.04019.45
5.4.420.0300.04319.30
5.4.410.0430.05019.44
5.4.400.0300.03719.14
5.4.390.0230.04318.98
5.4.380.0070.06018.48
5.4.370.0170.05718.74
5.4.360.0230.06318.52
5.4.350.0170.05318.63
5.4.340.0200.04318.77
5.4.320.0070.03612.52
5.4.310.0040.04312.51
5.4.300.0050.03712.52
5.4.290.0050.04212.52
5.4.280.0060.03912.41
5.4.270.0050.03912.41
5.4.260.0050.04912.41
5.4.250.0070.04212.41
5.4.240.0060.04712.41
5.4.230.0050.04012.40
5.4.220.0050.03812.41
5.4.210.0080.03212.40
5.4.200.0050.03812.40
5.4.190.0090.03712.39
5.4.180.0060.03612.40
5.4.170.0090.03412.41
5.4.160.0060.03612.40
5.4.150.0060.04212.40
5.4.140.0060.03912.08
5.4.130.0080.04012.07
5.4.120.0050.03512.03
5.4.110.0110.03312.03
5.4.100.0080.03312.02
5.4.90.0030.03912.02
5.4.80.0040.03812.02
5.4.70.0060.03512.02
5.4.60.0070.04012.02
5.4.50.0060.03512.02
5.4.40.0070.03312.00
5.4.30.0090.03612.01
5.4.20.0030.03812.01
5.4.10.0120.03512.00
5.4.00.0050.04011.50
5.3.290.0040.04312.80
5.3.280.0030.04012.71
5.3.270.0050.04912.73
5.3.260.0080.04712.72
5.3.250.0050.03812.72
5.3.240.0040.04312.72
5.3.230.0080.03712.70
5.3.220.0060.03712.68
5.3.210.0060.03912.68
5.3.200.0080.03912.68
5.3.190.0050.03812.68
5.3.180.0050.03812.68
5.3.170.0100.03212.67
5.3.160.0080.04312.67
5.3.150.0060.03712.67
5.3.140.0090.03312.66
5.3.130.0070.04112.66
5.3.120.0060.03812.66
5.3.110.0090.03912.66
5.3.100.0060.04512.13
5.3.90.0060.04512.11
5.3.80.0060.03512.11
5.3.70.0060.03512.11
5.3.60.0050.04112.09
5.3.50.0050.03712.04
5.3.40.0090.04012.04
5.3.30.0090.03612.00
5.3.20.0050.03611.79
5.3.10.0130.03411.74
5.3.00.0040.03811.73
5.2.170.0020.0339.24
5.2.160.0040.0409.23
5.2.150.0090.0329.23
5.2.140.0050.0339.23
5.2.130.0090.0319.20
5.2.120.0040.0329.20
5.2.110.0020.0329.20
5.2.100.0030.0319.19
5.2.90.0040.0309.20
5.2.80.0050.0309.18
5.2.70.0050.0369.18
5.2.60.0090.0289.14
5.2.50.0070.0299.11
5.2.40.0040.0299.09
5.2.30.0060.0299.05
5.2.20.0030.0359.05
5.2.10.0050.0278.95
5.2.00.0040.0308.82
5.1.60.0020.0268.11
5.1.50.0030.0268.10
5.1.40.0070.0238.09
5.1.30.0010.0298.43
5.1.20.0050.0268.46
5.1.10.0030.0308.18
5.1.00.0050.0248.18
5.0.50.0020.0286.65
5.0.40.0060.0206.52
5.0.30.0030.0306.33
5.0.20.0030.0196.29
5.0.10.0030.0256.28
5.0.00.0040.0296.27
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0000.0184.76
4.4.60.0020.0164.76
4.4.50.0030.0194.77
4.4.40.0050.0294.71
4.4.30.0040.0164.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0010.0374.76
4.3.110.0040.0144.67
4.3.100.0010.0174.66
4.3.90.0050.0124.64
4.3.80.0030.0234.58
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0010.0264.54
4.3.30.0020.0163.32
4.3.20.0020.0163.30
4.3.10.0030.0183.25
4.3.00.0100.01314.54

preferences:
38.58 ms | 401 KiB | 5 Q