3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* gets the data from a URL */ function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $returned_content = get_data('http://www.wetteren.be/'); /* remove linefeed */ $order = array("\r\n", "\n", "\r"); $data = str_replace($order, '', $returned_content); preg_match_all("/<a class='title' href='(.*?)'>(.*?)<\/a>.*?<span class=\"detailKort\">(.*?)<\/span>/", $data, $out); foreach ($out as $wert) { echo "Title: " . $wert[1] . "\n"; echo "Link: " . $wert[2] . "\n"; echo "Content: " . $wert[3] . "\n"; }

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.01018.18
8.3.50.0120.00821.12
8.3.40.0060.00918.79
8.3.30.0110.00318.79
8.3.20.0050.00320.25
8.3.10.0020.00523.52
8.3.00.0040.00422.43
8.2.180.0110.00416.63
8.2.170.0030.01122.96
8.2.160.0100.00322.25
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00517.50
8.2.110.0060.00321.03
8.2.100.0080.00317.75
8.2.90.0060.00319.09
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0090.00021.02
8.2.30.0000.00819.79
8.2.20.0000.00717.70
8.2.10.0040.00317.92
8.2.00.0000.00717.93
8.1.280.0070.01525.92
8.1.270.0030.00520.25
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.23
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.01017.23
8.1.190.0050.00317.10
8.1.180.0050.00318.10
8.1.170.0030.00518.46
8.1.160.0050.00321.96
8.1.150.0050.00318.70
8.1.140.0030.00517.28
8.1.130.0000.00717.59
8.1.120.0030.00517.26
8.1.110.0000.00717.36
8.1.100.0000.00717.36
8.1.90.0000.00717.32
8.1.80.0000.00817.31
8.1.70.0040.00417.38
8.1.60.0000.00817.45
8.1.50.0000.00817.38
8.1.40.0100.00017.34
8.1.30.0000.00917.46
8.1.20.0000.00717.44
8.1.10.0040.00417.44
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0070.00018.40
8.0.270.0030.00317.25
8.0.260.0030.00317.09
8.0.250.0000.00716.95
8.0.240.0070.00016.96
8.0.230.0000.00716.91
8.0.220.0080.00016.89
8.0.210.0040.00416.79
8.0.200.0000.00616.79
8.0.190.0060.00316.98
8.0.180.0040.00416.90
8.0.170.0030.00516.91
8.0.160.0000.00717.01
8.0.150.0070.00016.77
8.0.140.0040.00416.85
8.0.130.0000.00613.41
8.0.120.0000.00916.89
8.0.110.0050.00216.83
8.0.100.0050.00316.95
8.0.90.0050.00216.79
8.0.80.0080.00816.97
8.0.70.0070.00016.88
8.0.60.0050.00316.97
8.0.50.0000.00816.79
8.0.30.0070.01217.03
8.0.20.0110.00817.40
8.0.10.0030.00516.94
8.0.00.0100.00716.74
7.4.330.0020.00515.08
7.4.320.0060.00016.30
7.4.300.0000.00616.60
7.4.290.0040.00416.44
7.4.280.0050.00216.46
7.4.270.0020.00516.48
7.4.260.0020.00516.50
7.4.250.0040.00416.34
7.4.240.0020.00516.52
7.4.230.0020.00516.54
7.4.220.0130.01016.62
7.4.210.0100.00516.57
7.4.200.0030.00516.58
7.4.160.0080.00816.55
7.4.150.0090.00917.40
7.4.140.0150.00817.86
7.4.130.0080.00816.37
7.4.120.0070.01016.51
7.4.110.0120.00616.59
7.4.100.0070.01116.39
7.4.90.0070.01016.53
7.4.80.0130.00819.39
7.4.70.0080.00816.51
7.4.60.0030.01316.53
7.4.50.0040.00016.18
7.4.40.0130.00716.39
7.4.30.0090.01416.25
7.4.00.0070.00314.77
7.3.330.0000.00613.30
7.3.320.0030.00313.29
7.3.310.0040.00416.20
7.3.300.0000.00616.32
7.3.290.0000.00716.18
7.3.280.0070.01116.29
7.3.270.0100.00717.40
7.3.260.0090.00916.34
7.3.250.0120.00616.30
7.3.240.0110.00716.53
7.3.230.0130.01016.39
7.3.210.0170.00016.34
7.3.200.0180.00319.39
7.3.190.0130.00316.38
7.3.180.0090.00616.31
7.3.170.0100.00716.51
7.3.160.0130.00716.27
7.2.330.0070.01316.61
7.2.320.0070.01016.32
7.2.310.0140.01016.59
7.2.300.0060.00916.61
7.2.290.0060.01316.62
7.2.60.0070.00716.52
7.2.00.0110.00618.88
7.1.200.0060.00315.53
7.1.100.0080.00817.64
7.1.70.0000.00816.90
7.1.60.0130.01019.12
7.1.50.0120.00616.95
7.1.00.0130.06722.35
7.0.200.0060.00316.54
7.0.60.0030.09019.93
7.0.50.0030.08317.99
7.0.40.0070.08720.29
7.0.30.0570.07020.07
7.0.20.0230.06720.07
7.0.10.0070.06320.07
7.0.00.0100.04320.26
5.6.280.0070.06321.08
5.6.210.0070.03720.70
5.6.200.0030.04318.22
5.6.190.0100.06720.56
5.6.180.0270.07320.47
5.6.170.0230.08020.54
5.6.160.0030.04320.56
5.6.150.0170.07718.14
5.6.140.0030.05318.22
5.6.130.0100.08318.21
5.6.120.0070.08320.99
5.6.110.0070.08020.90
5.6.100.0170.07721.05
5.6.90.0000.04320.99
5.6.80.0100.07020.44
5.6.70.4530.03720.52
5.5.350.0070.07020.34
5.5.340.0170.04017.93
5.5.330.0130.07020.43
5.5.320.0400.06320.32
5.5.310.0370.06720.28
5.5.300.0130.06017.96
5.5.290.0030.09017.95
5.5.280.0100.04720.97
5.5.270.0030.05720.98
5.5.260.0130.07720.77
5.5.250.0100.08720.61
5.5.240.0030.07320.16
5.4.450.0570.06719.11
5.4.440.0600.06019.54
5.4.430.0470.06319.09
5.4.420.0200.06319.10
5.4.410.0700.05719.47
5.4.400.0670.05719.16
5.4.390.0870.04719.27
5.4.380.0330.05018.91
5.4.370.0670.05019.22
5.4.360.0730.06019.11
5.4.350.0600.05018.91
5.4.340.0030.06019.05
5.4.320.0730.05719.21
5.4.310.0630.05719.30
5.4.300.0800.06319.23
5.4.290.0670.06319.21
5.4.280.0700.05318.94
5.4.270.0930.05018.91
5.4.260.0730.06018.90
5.4.250.0670.06719.28
5.4.240.0870.05319.20
5.4.230.0900.05018.91
5.4.220.0830.05019.04
5.4.210.0770.05319.11
5.4.200.0730.03716.89
5.4.190.0930.05018.92
5.4.180.0930.04719.10
5.4.170.0730.07018.96
5.4.160.0770.05718.82
5.4.150.0830.05019.04
5.4.140.0570.05316.56
5.4.130.0670.05016.30
5.4.120.0830.04016.30
5.4.110.0070.05016.33
5.4.100.0900.06016.40
5.4.90.0630.05716.28
5.4.80.0700.05016.26
5.4.70.0900.04016.48
5.4.60.0330.03016.49
5.4.50.0000.07716.56
5.4.40.0000.06316.22
5.4.30.0000.03716.53
5.4.20.0200.05316.21

preferences:
49.11 ms | 401 KiB | 5 Q