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 />"; } if (!$data) { return false; }

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.10.0070.01017.10
7.4.00.0090.01016.05
7.3.130.0030.01616.95
7.3.120.0070.01216.13
7.3.110.0060.01016.04
7.3.100.0050.00916.29
7.3.90.0060.00916.10
7.3.80.0020.01316.22
7.3.70.0080.00616.29
7.3.60.0030.01016.18
7.3.50.0000.01216.11
7.3.40.0070.00916.21
7.3.30.0040.01116.00
7.3.20.0050.01017.96
7.3.10.0040.00817.68
7.3.00.0040.01117.72
7.2.260.0120.00317.02
7.2.250.0080.01216.39
7.2.240.0080.00916.18
7.2.230.0080.00916.33
7.2.220.0080.00416.39
7.2.210.0100.00616.31
7.2.200.0050.00816.36
7.2.190.0110.00416.36
7.2.180.0000.01516.31
7.2.170.0030.01216.29
7.2.160.0100.00716.99
7.2.150.0040.01118.93
7.2.140.0070.00718.90
7.2.130.0070.00618.12
7.2.120.0050.01118.13
7.2.110.0070.00518.25
7.2.100.0010.01418.21
7.2.90.0100.00618.19
7.2.80.0060.00918.23
7.2.70.0050.00818.18
7.2.60.0050.01017.91
7.2.50.0080.00818.11
7.2.40.0040.01018.29
7.2.30.0100.00618.15
7.2.20.0080.00718.11
7.2.10.0080.00518.29
7.2.00.0050.00918.88
7.1.330.0100.00517.14
7.1.320.0020.01217.10
7.1.310.0040.00717.11
7.1.300.0060.00317.14
7.1.290.0070.00517.12
7.1.280.0050.01116.95
7.1.270.0040.00516.97
7.1.260.0070.00616.93
7.1.250.0020.01317.05
7.1.240.0070.00417.75
7.1.230.0030.01517.66
7.1.220.0150.00317.95
7.1.210.0040.01517.66
7.1.200.0020.01116.91
7.1.190.0100.00717.68
7.1.180.0130.00617.86
7.1.170.0060.00918.00
7.1.160.0060.00917.69
7.1.150.0040.01217.84
7.1.140.0110.00417.79
7.1.130.0080.00317.56
7.1.120.0030.01217.89
7.1.110.0070.01117.65
7.1.100.0080.00518.33
7.1.90.0030.01417.59
7.1.80.0040.01017.81
7.1.70.0080.00817.68
7.1.60.0100.01318.51
7.1.50.0080.01017.59
7.1.40.0030.00917.69
7.1.30.0060.00917.78
7.1.20.0090.00317.82
7.1.10.0100.00617.77
7.1.00.0050.04020.30
7.0.330.0060.00917.34
7.0.320.0030.00717.50
7.0.310.0070.00417.41
7.0.300.0040.01217.43
7.0.290.0090.00617.44
7.0.280.0110.00317.59
7.0.270.0030.00917.66
7.0.260.0060.01017.27
7.0.250.0070.01017.27
7.0.240.0070.00317.36
7.0.230.0060.00317.41
7.0.220.0100.00717.66
7.0.210.0060.01017.47
7.0.200.0030.01117.46
7.0.190.0060.01217.59
7.0.180.0040.00917.67
7.0.170.0040.00817.47
7.0.160.0000.01817.70
7.0.150.0090.00617.22
7.0.140.0070.01017.48
7.0.130.0150.00017.72
7.0.120.0030.00917.52
7.0.110.0110.00717.57
7.0.100.0030.01217.63
7.0.90.0110.00417.55
7.0.80.0080.04318.99
7.0.70.0080.03518.93
7.0.60.0390.03418.89
7.0.50.0480.02519.06
7.0.40.0070.04717.96
7.0.30.0050.03017.98
7.0.20.0050.04917.94
7.0.10.0080.04517.80
7.0.00.0060.04317.90
5.6.400.0090.00916.15
5.6.390.0100.01016.00
5.6.380.0040.00816.38
5.6.370.0070.00316.24
5.6.360.0100.00716.10
5.6.350.0060.00616.26
5.6.340.0080.01116.43
5.6.330.0030.00716.29
5.6.320.0040.01416.22
5.6.310.0100.01016.46
5.6.300.0090.00616.58
5.6.290.0130.00316.48
5.6.280.0060.03918.87
5.6.270.0060.01016.11
5.6.260.0030.01316.36
5.6.250.0120.00616.00
5.6.240.0030.00916.28
5.6.230.0060.03818.59
5.6.220.0140.03618.67
5.6.210.0050.02418.65
5.6.200.0080.04118.96
5.6.190.0110.04318.87
5.6.180.0070.02518.80
5.6.170.0160.03718.95
5.6.160.0080.04919.04
5.6.150.0050.03518.80
5.6.140.0100.04318.75
5.6.130.0020.05518.77
5.6.120.0080.04818.76
5.6.110.0080.05018.74
5.6.100.0050.02918.75
5.6.90.0100.04318.78
5.6.80.0030.03018.49
5.6.70.0110.02518.43
5.6.60.0030.04718.41
5.6.50.0060.02618.51
5.6.40.0070.02318.31
5.6.30.0050.03218.36
5.6.20.0060.02318.46
5.6.10.0080.03318.45
5.6.00.0030.03118.31
5.5.380.0070.00716.31
5.5.370.0100.04018.43
5.5.360.0040.03618.55
5.5.350.0050.04018.50
5.5.340.0120.02718.56
5.5.330.0090.03418.60
5.5.320.0020.03118.67
5.5.310.0110.04018.66
5.5.300.0030.05218.50
5.5.290.0090.04418.62
5.5.280.0040.03418.60
5.5.270.0080.04618.70
5.5.260.0100.04318.59
5.5.250.0110.03618.55
5.5.240.0060.02818.38
5.5.230.0130.04018.35
5.5.220.0100.03018.42
5.5.210.0120.02118.29
5.5.200.0080.03318.27
5.5.190.0140.04118.40
5.5.180.0070.02518.39
5.5.170.0080.00316.21
5.5.160.0100.04018.08
5.5.150.0120.03918.36
5.5.140.0040.04718.39
5.5.130.0070.03218.41
5.5.120.0030.04518.13
5.5.110.0080.02518.29
5.5.100.0080.02218.22
5.5.90.0050.04318.27
5.5.80.0080.04018.32
5.5.70.0050.03318.24
5.5.60.0090.03018.18
5.5.50.0110.04118.36
5.5.40.0130.02118.10
5.5.30.0050.04418.11
5.5.20.0150.03818.29
5.5.10.0100.03718.28
5.5.00.0110.02518.20
5.4.450.0050.04316.36
5.4.440.0100.04016.39
5.4.430.0030.04516.40
5.4.420.0050.04816.26
5.4.410.0080.02116.24
5.4.400.0030.04616.08
5.4.390.0030.03016.08
5.4.380.0060.04616.09
5.4.370.0120.03216.07
5.4.360.0070.02316.05
5.4.350.0070.04016.05
5.4.340.0020.02416.07
5.4.330.0040.01112.98
5.4.320.0100.03416.37
5.4.310.0050.04316.10
5.4.300.0080.03616.30
5.4.290.0080.02516.09
5.4.280.0120.02116.15
5.4.270.0080.02516.19
5.4.260.0030.02716.06
5.4.250.0090.02516.17
5.4.240.0070.03716.09
5.4.230.0030.02716.32
5.4.220.0070.04516.11
5.4.210.0030.04316.07
5.4.200.0080.04016.22
5.4.190.0060.02816.09
5.4.180.0070.02816.23
5.4.170.0030.03516.33
5.4.160.0090.03916.06
5.4.150.0080.03016.12
5.4.140.0080.02814.84
5.4.130.0030.04114.90
5.4.120.0100.02714.96
5.4.110.0070.04014.94
5.4.100.0030.02314.84
5.4.90.0130.03014.83
5.4.80.0100.03814.79
5.4.70.0030.02714.86
5.4.60.0110.03514.87
5.4.50.0070.02314.92
5.4.40.0070.03714.89
5.4.30.0000.03314.87
5.4.20.0050.03814.90
5.4.10.0030.02914.86
5.4.00.0100.03214.59

preferences:
33.57 ms | 401 KiB | 5 Q