3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getHTML($url,$timeout) { $ch = curl_init($url); // initialize curl with given url curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); // set useragent curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // write the response to a variable curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // follow redirects if any curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // max. seconds to execute curl_setopt($ch, CURLOPT_FAILONERROR, 1); // stop when it encounters an error return @curl_exec($ch); } $html=getHTML("http://www.http://dict.leo.org",10); // Find all images on webpage foreach($html->find("img") as $element) echo $element->src . '<br>'; // Find all links on webpage foreach($html->find("a") as $element) echo $element->href . '<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)
8.3.60.0170.00318.52
8.3.50.0120.00722.12
8.3.40.0040.01118.97
8.3.30.0070.00719.13
8.3.20.0040.00420.16
8.3.10.0000.00823.65
8.3.00.0000.01017.59
8.2.180.0090.01218.42
8.2.170.0110.00622.96
8.2.160.0070.00720.26
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00322.13
8.2.110.0060.00322.25
8.2.100.0060.00617.72
8.2.90.0050.00318.94
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0000.00818.03
8.2.30.0040.00417.93
8.2.20.0040.00417.55
8.2.10.0060.00318.05
8.2.00.0100.00017.55
8.1.280.0170.00325.92
8.1.270.0030.00623.86
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0070.00323.83
8.1.230.0110.00019.17
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.00
8.1.190.0060.00317.53
8.1.180.0050.00318.10
8.1.170.0040.00418.57
8.1.160.0040.00422.06
8.1.150.0040.00418.48
8.1.140.0050.00517.23
8.1.130.0000.00717.76
8.1.120.0040.00417.21
8.1.110.0080.00017.22
8.1.100.0040.00417.20
8.1.90.0090.00017.31
8.1.80.0070.00017.29
8.1.70.0030.00317.30
8.1.60.0040.00717.49
8.1.50.0040.00417.34
8.1.40.0000.00817.33
8.1.30.0030.00517.55
8.1.20.0030.00517.57
8.1.10.0030.00617.44
8.1.00.0020.00517.43
8.0.300.0000.00720.65
8.0.290.0070.00017.18
8.0.280.0050.00218.35
8.0.270.0030.00317.10
8.0.260.0080.00017.20
8.0.250.0070.00016.97
8.0.240.0000.00616.94
8.0.230.0000.00717.02
8.0.220.0000.00716.88
8.0.210.0070.00016.91
8.0.200.0030.00316.93
8.0.190.0060.00316.92
8.0.180.0080.00016.92
8.0.170.0000.00816.93
8.0.160.0040.00416.76
8.0.150.0020.00516.89
8.0.140.0030.00316.75
8.0.130.0060.00013.32
8.0.120.0040.00416.92
8.0.110.0030.00516.85
8.0.100.0040.00416.84
8.0.90.0000.00716.72
8.0.80.0230.00016.94
8.0.70.0040.00416.71
8.0.60.0070.00016.85
8.0.50.0040.00416.88
8.0.30.0080.01416.97
8.0.20.0120.00717.40
8.0.10.0030.00516.91
8.0.00.0090.00916.64
7.4.330.0000.00515.03
7.4.320.0060.00016.42
7.4.300.0060.00016.54
7.4.290.0000.00716.31
7.4.280.0000.00716.43
7.4.270.0030.00516.53
7.4.260.0000.00616.56
7.4.250.0050.00316.43
7.4.240.0040.00416.38
7.4.230.0030.00516.65
7.4.220.0130.00316.50
7.4.210.0030.01416.48
7.4.200.0030.00316.54
7.4.190.0050.00316.36
7.4.160.0100.00616.62
7.4.150.0130.00317.40
7.4.140.0150.00317.86
7.4.130.0120.00516.44
7.4.120.0110.00816.36
7.4.110.0150.00616.31
7.4.100.0110.00716.55
7.4.90.0170.00816.48
7.4.80.0190.00319.39
7.4.70.0060.00916.55
7.4.60.0160.00616.49
7.4.50.0000.00616.37
7.4.40.0070.01122.77
7.4.30.0100.00616.45
7.4.00.0090.00615.02
7.3.330.0030.00313.17
7.3.320.0060.00013.30
7.3.310.0000.00816.16
7.3.300.0070.00016.32
7.3.290.0070.00716.32
7.3.280.0110.00916.29
7.3.270.0120.01317.40
7.3.260.0110.00516.57
7.3.250.0130.01016.47
7.3.240.0060.00916.38
7.3.230.0120.00616.39
7.3.210.0120.00616.50
7.3.200.0170.00719.39
7.3.190.0090.00916.33
7.3.180.0090.00616.36
7.3.170.0040.01116.29
7.3.160.0090.00616.59
7.3.120.0130.00314.66
7.2.330.0070.01016.31
7.2.320.0040.01716.55
7.2.310.0090.00916.25
7.2.300.0120.00616.57
7.2.290.0100.00616.53
7.2.60.0060.00616.81
7.2.00.0140.00319.30
7.1.200.0000.01015.61
7.1.100.0110.00317.61
7.1.70.0080.00816.91
7.1.60.0100.01319.46
7.1.50.0130.00916.84
7.1.00.0030.07722.55
7.0.200.0000.00916.62
7.0.140.0070.07021.96
7.0.60.0100.08020.07
7.0.50.0030.07017.98
7.0.40.0130.06020.24
7.0.30.0400.06020.23
7.0.20.0170.04720.10
7.0.10.0300.06720.09
7.0.00.0000.04720.12
5.6.280.0000.07720.91
5.6.210.0070.07720.75
5.6.200.0130.03718.25
5.6.190.0070.08720.67
5.6.180.0300.05720.64
5.6.170.0270.05320.47
5.6.160.0100.04320.45
5.6.150.0130.07318.28
5.6.140.0130.06718.24
5.6.130.0070.08018.15
5.6.120.0070.05721.02
5.6.110.0100.07321.12
5.6.100.0000.08721.03
5.6.90.0070.06021.00
5.6.80.0130.05020.29
5.6.70.4470.04020.38
5.5.350.0070.08720.38
5.5.340.0100.03718.04
5.5.330.0070.06020.19
5.5.320.0430.06720.36
5.5.310.0270.07720.35
5.5.300.0070.08018.08
5.5.290.0070.08317.98
5.5.280.0070.03720.85
5.5.270.0100.08320.65
5.5.260.0170.08020.89
5.5.250.0200.05320.78
5.5.240.0430.05720.15
5.4.450.0930.06719.45
5.4.440.0770.04719.59
5.4.430.0130.05719.18
5.4.420.0170.07319.38
5.4.410.0770.05019.54
5.4.400.0230.04719.14
5.4.390.0630.06319.06
5.4.380.0430.04318.57
5.4.370.0230.05718.76
5.4.360.0300.05718.75
5.4.350.0330.05018.47
5.4.340.0330.05718.53
5.4.320.0060.04112.51
5.4.310.0080.03612.51
5.4.300.0040.04412.51
5.4.290.0130.05812.49
5.4.280.0090.05712.39
5.4.270.0060.05812.39
5.4.260.0090.05812.39
5.4.250.0130.05412.39
5.4.240.0100.06112.39
5.4.230.0100.05712.38
5.4.220.0080.05312.38
5.4.210.0070.05412.38
5.4.200.0120.05012.38
5.4.190.0100.05012.38
5.4.180.0100.05312.37
5.4.170.0100.05112.39
5.4.160.0080.05112.38
5.4.150.0080.05012.38
5.4.140.0140.05212.06
5.4.130.0080.04212.05
5.4.120.0060.04112.01
5.4.110.0040.04212.00
5.4.100.0060.04412.00
5.4.90.0110.04912.00
5.4.80.0080.05112.00
5.4.70.0100.04912.00
5.4.60.0140.04312.00
5.4.50.0080.05312.00
5.4.40.0130.07211.99
5.4.30.0110.05511.98
5.4.20.0100.06511.98
5.4.10.0110.05511.98
5.4.00.0140.06111.48
5.3.290.0140.03512.80
5.3.280.0140.06612.70
5.3.270.0130.07812.73
5.3.260.0120.06612.71
5.3.250.0120.06312.72
5.3.240.0100.06712.72
5.3.230.0120.06312.70
5.3.220.0120.06612.68
5.3.210.0070.06512.68
5.3.200.0080.06112.68
5.3.190.0150.05312.68
5.3.180.0110.05912.67
5.3.170.0110.05712.67
5.3.160.0090.05912.67
5.3.150.0060.05512.67
5.3.140.0160.04412.66
5.3.130.0070.05512.66
5.3.120.0080.05612.66
5.3.110.0150.06612.66
5.3.100.0150.06512.12
5.3.90.0150.08512.11
5.3.80.0080.04712.09
5.3.70.0100.04912.09
5.3.60.0110.04812.08
5.3.50.0150.05112.03
5.3.40.0090.05912.03
5.3.30.0080.05011.99
5.3.20.0150.05411.77
5.3.10.0060.05911.73
5.3.00.0090.05111.72
5.2.170.0080.0449.22
5.2.160.0070.0449.22
5.2.150.0110.0719.21
5.2.140.0100.0419.22
5.2.130.0070.0439.18
5.2.120.0110.0389.18
5.2.110.0120.0399.18
5.2.100.0070.0539.18
5.2.90.0110.0439.18
5.2.80.0080.0449.18
5.2.70.0050.0379.18
5.2.60.0070.0339.13
5.2.50.0100.0289.10
5.2.40.0080.0359.08
5.2.30.0090.0409.06
5.2.20.0070.0409.04
5.2.10.0070.0368.95
5.2.00.0050.0408.81
5.1.60.0060.0358.09
5.1.50.0070.0338.09
5.1.40.0070.0348.07
5.1.30.0090.0338.42
5.1.20.0090.0348.44
5.1.10.0060.0408.17
5.1.00.0090.0368.16
5.0.50.0060.0336.65
5.0.40.0070.0286.51
5.0.30.0100.0356.32
5.0.20.0050.0266.28
5.0.10.0050.0286.26
5.0.00.0030.0336.26
4.4.90.0030.0164.78
4.4.80.0050.0224.75
4.4.70.0130.0524.76
4.4.60.0060.0224.75
4.4.50.0060.0204.77
4.4.40.0080.0304.71
4.4.30.0060.0234.76
4.4.20.0060.0244.85
4.4.10.0040.0244.85
4.4.00.0060.0354.75
4.3.110.0070.0214.67
4.3.100.0040.0224.66
4.3.90.0090.0194.64
4.3.80.0040.0344.58
4.3.70.0080.0194.63
4.3.60.0050.0194.63
4.3.50.0050.0224.63
4.3.40.0040.0314.54
4.3.30.0060.0193.31
4.3.20.0040.0203.28
4.3.10.0060.0203.24
4.3.00.0170.03310.31

preferences:
40.54 ms | 401 KiB | 5 Q