3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fetch_news(){ $data = file_get_contents('http://www.tagesschau.de/xml/rss2'); $data = simplexml_load_string($data); //print_r($data); $articles = array(); foreach ($data->channel->item as $item) { $articles[] = array( 'title' => (string)$item->title, 'description' => (string)$item->description, 'link' => (string)$item->link, 'date' => (string)$item->pubDate, ); } //print_r($articles); } foreach (fetch_news() as $article){ $article['link']; }

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.0100.01017.00
8.3.50.0370.00221.27
8.3.40.0180.00018.69
8.3.30.0140.00718.84
8.3.20.0080.00020.54
8.3.10.0030.00623.64
8.3.00.0050.00323.94
8.2.180.0130.00618.68
8.2.170.0140.00722.96
8.2.160.0110.00422.25
8.2.150.0040.00424.18
8.2.140.0070.01324.66
8.2.130.0030.00621.18
8.2.120.0040.00426.35
8.2.110.0030.00621.07
8.2.100.0040.00817.99
8.2.90.0050.00319.34
8.2.80.0100.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00518.02
8.2.50.0050.00318.10
8.2.40.0110.00020.53
8.2.30.0040.00420.75
8.2.20.0040.00418.02
8.2.10.0060.00318.39
8.2.00.0000.00718.32
8.1.280.0150.00025.92
8.1.270.0000.00822.35
8.1.260.0080.00028.09
8.1.250.0060.00628.09
8.1.240.0000.01021.03
8.1.230.0090.00317.95
8.1.220.0050.00317.89
8.1.210.0040.00418.77
8.1.200.0070.00417.48
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0000.00721.08
8.1.150.0040.00419.10
8.1.140.0080.00019.64
8.1.130.0040.00417.92
8.1.120.0000.00717.63
8.1.110.0040.00717.68
8.1.100.0050.00217.63
8.1.90.0030.00517.60
8.1.80.0080.00017.64
8.1.70.0030.00317.69
8.1.60.0080.00017.66
8.1.50.0080.00017.57
8.1.40.0000.00817.66
8.1.30.0060.00317.76
8.1.20.0080.00017.85
8.1.10.0040.00417.69
8.1.00.0040.00417.63
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0040.00418.71
8.0.270.0050.00317.38
8.0.260.0000.00717.44
8.0.250.0000.00717.13
8.0.240.0000.00717.20
8.0.230.0030.00717.16
8.0.220.0040.00417.18
8.0.210.0050.00217.11
8.0.200.0000.00617.19
8.0.190.0040.00417.21
8.0.180.0000.00817.17
8.0.170.0080.00017.14
8.0.160.0040.00417.23
8.0.150.0030.00517.29
8.0.140.0000.00817.19
8.0.130.0070.00013.68
8.0.120.0000.00817.22
8.0.110.0040.00417.22
8.0.100.0040.00417.15
8.0.90.0040.00417.18
8.0.80.0060.01517.27
8.0.70.0040.00417.27
8.0.60.0050.00317.10
8.0.50.0050.00517.27
8.0.30.0110.00917.57
8.0.20.0110.00817.40
8.0.10.0000.00717.17
8.0.00.0140.00517.05
7.4.330.0000.00616.98
7.4.320.0030.00316.73
7.4.300.0030.00316.78
7.4.290.0000.00716.73
7.4.280.0000.01016.77
7.4.270.0020.00516.72
7.4.260.0070.00016.64
7.4.250.0050.00316.83
7.4.240.0010.00616.87
7.4.230.0000.00716.73
7.4.220.0260.01216.78
7.4.210.0070.01416.77
7.4.200.0040.00416.95
7.4.160.0100.00716.62
7.4.150.0110.00817.40
7.4.140.0100.00917.86
7.4.130.0100.01016.78
7.4.120.0100.00816.79
7.4.110.0080.01116.91
7.4.100.0120.00916.80
7.4.90.0100.00716.82
7.4.80.0060.01219.39
7.4.70.0140.01016.68
7.4.60.0090.00916.98
7.4.50.0100.00716.76
7.4.40.0100.00716.81
7.4.30.0150.00916.77
7.4.00.0000.01515.32
7.3.330.0050.00013.43
7.3.320.0000.00513.50
7.3.310.0050.00316.53
7.3.300.0030.00316.54
7.3.290.0030.01416.60
7.3.280.0110.00616.62
7.3.270.0140.00317.40
7.3.260.0170.00016.71
7.3.250.0070.01116.55
7.3.240.0110.00616.63
7.3.230.0070.01116.59
7.3.210.0090.00916.76
7.3.200.0200.00416.42
7.3.190.0030.01616.56
7.3.180.0120.00616.68
7.3.170.0180.00416.64
7.3.160.0130.00316.77
7.3.10.0000.01416.79
7.3.00.0060.00916.99
7.2.330.0090.00916.73
7.2.320.0070.01116.87
7.2.310.0100.00716.85
7.2.300.0100.01016.63
7.2.290.0130.01016.71
7.2.130.0070.00717.31
7.2.120.0090.00617.27
7.2.110.0040.00817.20
7.2.100.0000.01217.29
7.2.90.0070.00717.20
7.2.80.0090.00617.14
7.2.70.0030.01017.07
7.2.60.0090.00717.12
7.2.50.0040.00817.14
7.2.40.0090.00417.37
7.2.30.0120.00317.32
7.2.20.0040.01116.80
7.2.10.0040.01116.78
7.2.00.0040.01218.35
7.1.250.0070.00316.15
7.1.200.0090.00916.07
7.1.100.0070.01018.47
7.1.70.0100.00017.36
7.1.60.0100.01319.52
7.1.50.0130.01017.43
7.1.00.0070.07322.63
7.0.200.0000.01017.13
7.0.60.0070.06720.31
7.0.50.0070.04018.18
7.0.40.0030.09320.45
7.0.30.0130.05020.59
7.0.20.0230.04320.63
7.0.10.0130.08720.49
7.0.00.0100.05020.51
5.6.210.0070.04321.05
5.6.200.0000.06318.49
5.6.190.0130.06020.96
5.6.180.0300.07721.08
5.6.170.0470.06320.92
5.6.160.0130.07720.81
5.6.150.0130.07718.54
5.6.140.0030.04318.72
5.6.130.0000.08718.45
5.6.120.0100.07721.44
5.6.110.0100.09021.50
5.6.100.0030.06721.53
5.6.90.0070.06721.34
5.6.80.0070.08020.93
5.5.350.4000.04720.84
5.5.340.0130.04018.43
5.5.330.0130.07720.87
5.5.320.0600.07320.68
5.5.310.0170.04020.68
5.5.300.0070.06718.59
5.5.290.0070.07318.42
5.5.280.0100.04021.29
5.5.270.0070.04021.17
5.5.260.0100.07021.25
5.5.250.0030.07721.06
5.5.240.0170.08020.41

preferences:
40.87 ms | 401 KiB | 5 Q