3v4l.org

run code in 300+ PHP versions simultaneously
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?php $url = "http://apt.saurik.com/debs/"; $opt = array("http" => array('ignore_errors' => true)); $options = array( 'http' => array( 'method' => 'GET', 'header' => 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25', ), ); $context = stream_context_create($options); //ファイル取得 $file = file_get_contents($url, false, $context); $namepat = '/<a.*?<\/a>".*?"/'; preg_match_all($namepat, $file, $data, PREG_SET_ORDER); //日付を先に取得 $date = time(); $dates = date("Y/m/d H:i:s",$date); //echo date("Y/m/d H:i:s",$date); foreach ($data as $name) { echo $name[0]."<br />"; }

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.00615.62
7.3.120.0040.01415.22
7.3.110.0100.01015.25
7.3.100.0140.00315.37
7.3.90.0080.00815.19
7.3.80.0110.00315.26
7.3.70.0070.01015.16
7.3.60.0090.00615.25
7.3.50.0040.01515.39
7.3.40.0030.01015.46
7.3.30.0150.00315.34
7.3.20.0100.00717.14
7.3.10.0150.00517.22
7.3.00.0040.01117.31
7.2.250.0060.01315.61
7.2.240.0150.00615.63
7.2.230.0080.00815.38
7.2.220.0070.00415.47
7.2.210.0070.01115.43
7.2.200.0090.00615.25
7.2.190.0030.01715.44
7.2.180.0130.00015.72
7.2.170.0100.01015.60
7.2.130.0030.01417.09
7.2.120.0000.01317.29
7.2.110.0070.00717.56
7.2.100.0100.00717.38
7.2.90.0000.01117.38
7.2.80.0040.00917.51
7.2.70.0060.00617.16
7.2.60.0060.00917.35
7.2.50.0110.01117.35
7.2.40.0080.01017.48
7.2.30.0060.01217.50
7.2.20.0110.00717.40
7.2.10.0100.00717.47
7.2.00.0030.01118.60
7.1.330.0060.00916.38
7.1.320.0060.00916.56
7.1.310.0100.00316.03
7.1.300.0050.00816.10
7.1.290.0060.00916.37
7.1.280.0040.00816.23
7.1.270.0090.00616.42
7.1.260.0070.01016.10
7.1.250.0110.00315.95
7.1.200.0030.00616.21
7.1.100.0000.01218.36
7.1.70.0030.00717.84
7.1.60.0150.01119.13
7.1.50.0000.01217.68
7.1.00.0030.07722.66
7.0.200.0000.00817.16
7.0.100.0070.03720.30
7.0.90.0030.04720.27
7.0.80.0100.07720.26
7.0.70.0070.07020.33
7.0.60.0070.05020.23
7.0.50.0400.06720.80
7.0.40.0070.04020.54
7.0.30.0070.08720.30
7.0.20.0130.07720.52
7.0.10.0100.08720.30
7.0.00.0100.08320.40
5.6.280.0030.07321.28
5.6.250.0030.08721.10
5.6.240.0070.07320.98
5.6.230.0100.06320.96
5.6.220.0130.07020.84
5.6.210.0100.06320.98
5.6.200.0100.07721.59
5.6.190.0070.04021.40
5.6.180.0000.08321.49
5.6.170.0100.06721.52
5.6.160.0200.06321.43
5.6.150.0130.05021.42
5.6.140.0070.05721.39
5.6.130.0000.04721.34
5.6.120.0070.08021.39
5.6.110.0030.05021.36
5.6.100.0100.05321.48
5.6.90.0100.03321.48
5.6.80.0100.07020.75
5.6.70.0000.06720.86
5.6.60.0200.06720.74
5.6.50.0070.03720.78
5.6.40.0030.06320.88
5.6.30.0000.07320.78
5.6.20.0070.04020.80
5.6.10.0030.06020.78
5.6.00.0070.04720.71
5.5.380.0030.08720.93
5.5.370.0070.06720.71
5.5.360.0100.07720.72
5.5.350.0070.07020.67
5.5.340.0030.04021.29
5.5.330.0030.06321.34
5.5.320.0070.03721.18
5.5.310.0030.08321.02
5.5.300.0030.08721.26
5.5.290.0070.08721.23
5.5.280.0030.04321.18
5.5.270.0030.04321.22
5.5.260.0070.04721.32
5.5.250.0070.04020.99
5.5.240.0070.07320.55
5.5.230.0070.06720.61
5.5.220.0000.06020.68
5.5.210.0000.04720.66
5.5.200.0100.06020.57
5.5.190.0100.05720.64
5.5.180.0170.07020.58
5.5.160.0070.07320.69
5.5.150.0070.05320.44
5.5.140.0070.05720.54
5.5.130.0030.08320.37
5.5.120.0030.06020.54
5.5.110.0030.07720.34
5.5.100.0070.05320.46
5.5.90.0030.04720.42
5.5.80.0070.06320.51
5.5.70.0070.06020.34
5.5.60.0130.05720.48
5.5.50.0100.07320.34
5.5.40.0100.07320.33
5.5.30.0130.06020.43
5.5.20.0100.06020.25
5.5.10.0070.05720.32
5.5.00.0070.04020.45
5.4.450.0100.07319.64
5.4.440.0030.06719.64
5.4.430.0100.05719.63
5.4.420.0070.05019.89
5.4.410.0070.06319.64
5.4.400.0070.03319.30
5.4.390.0070.03719.32
5.4.380.0070.04319.25
5.4.370.0070.03019.47
5.4.360.0070.06719.57
5.4.350.0000.06319.41
5.4.340.0030.04019.29
5.4.320.0000.08319.36
5.4.310.0070.07319.41
5.4.300.0130.06019.36
5.4.290.0070.04319.56
5.4.280.0130.06719.36
5.4.270.0130.05719.41
5.4.260.0070.04719.30
5.4.250.0030.07719.34
5.4.240.0100.06719.36
5.4.230.0070.03319.47
5.4.220.0100.07319.36
5.4.210.0100.05719.29
5.4.200.0030.05019.41
5.4.190.0230.06319.39
5.4.180.0030.07719.55
5.4.170.0030.06019.36
5.4.160.0100.06719.45
5.4.150.0070.05019.29
5.4.140.0100.07016.63
5.4.130.0100.06316.63
5.4.120.0100.06016.66
5.4.110.0170.05716.65
5.4.100.0070.07316.66
5.4.90.0100.07316.78
5.4.80.0070.04316.86
5.4.70.0030.05316.79
5.4.60.0070.05716.85
5.4.50.0070.07316.80
5.4.40.0100.04316.75
5.4.30.0130.06316.74
5.4.20.0100.05316.73
5.4.10.0000.04016.77
5.4.00.0070.04016.09

preferences:
54.47 ms | 401 KiB | 5 Q