3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents('http://www.amazon.com/Now-Foods-Vitamin-100mcg-Liposomal/dp/B0045MJNCU'); //get the html returned from the following url $pokemon_doc = new DOMDocument(); libxml_use_internal_errors(TRUE); //disable libxml errors if(!empty($html)){ //if any html is actually returned $pokemon_doc->loadHTML($html); libxml_clear_errors(); //remove errors for yucky html $pokemon_xpath = new DOMXPath($pokemon_doc); //get all the h2's with an id $pokemon_row = $pokemon_xpath->query('//*[@id="price"]/table/tbody/tr[1]'); if($pokemon_row->length > 0){ foreach($pokemon_row as $row){ echo $row->nodeValue . "<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.40.0090.00619.21
8.3.30.0070.00719.26
8.3.20.0070.00020.70
8.3.10.0040.00422.49
8.3.00.0040.00422.84
8.2.170.0120.00322.96
8.2.160.0090.00619.29
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00319.61
8.2.110.0060.00620.77
8.2.100.0040.00818.16
8.2.90.0040.00419.47
8.2.80.0030.00618.05
8.2.70.0070.00717.59
8.2.60.0000.00818.15
8.2.50.0040.00418.07
8.2.40.0000.00820.19
8.2.30.0040.00418.22
8.2.20.0040.00418.02
8.2.10.0070.00018.05
8.2.00.0000.00718.03
8.1.270.0040.00422.25
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00622.35
8.1.230.0110.00021.11
8.1.220.0080.00018.77
8.1.210.0090.00019.11
8.1.200.0000.01017.38
8.1.190.0040.00417.53
8.1.180.0090.00019.13
8.1.170.0050.00318.90
8.1.160.0000.00722.27
8.1.150.0000.00719.03
8.1.140.0040.00417.71
8.1.130.0030.00518.15
8.1.120.0040.00417.63
8.1.110.0050.00317.64
8.1.100.0070.00017.71
8.1.90.0000.00717.71
8.1.80.0050.00217.57
8.1.70.0070.00017.64
8.1.60.0090.00017.64
8.1.50.0050.00217.75
8.1.40.0040.00417.77
8.1.30.0040.00417.84
8.1.20.0040.00417.86
8.1.10.0000.00817.73
8.1.00.0030.00617.65
8.0.300.0030.00620.23
8.0.290.0080.00017.53
8.0.280.0040.00418.63
8.0.270.0000.00717.45
8.0.260.0030.00317.22
8.0.250.0040.00417.19
8.0.240.0030.00517.20
8.0.230.0050.00217.24
8.0.220.0000.00717.19
8.0.210.0030.00317.18
8.0.200.0060.00017.30
8.0.190.0050.00317.25
8.0.180.0000.00717.22
8.0.170.0020.00517.15
8.0.160.0090.00017.29
8.0.150.0000.00717.10
8.0.140.0040.00417.17
8.0.130.0030.00313.74
8.0.120.0000.00917.26
8.0.110.0030.00517.21
8.0.100.0040.00417.17
8.0.90.0040.00417.20
8.0.80.0070.01017.27
8.0.70.0030.00517.34
8.0.60.0030.00517.14
8.0.50.0070.00017.32
8.0.30.0100.00917.50
8.0.20.0070.01617.47
8.0.10.0000.00817.30
8.0.00.0110.00717.02
7.4.330.0030.00315.39
7.4.320.0030.00316.71
7.4.300.0030.00316.61
7.4.290.0000.00716.82
7.4.280.0020.00516.70
7.4.270.0070.00016.77
7.4.260.0040.00416.70
7.4.250.0030.00516.73
7.4.240.0020.00516.77
7.4.230.0040.00417.01
7.4.220.0100.01016.68
7.4.210.0090.00716.74
7.4.200.0040.00416.65
7.4.190.0040.00416.92
7.4.160.0070.01016.81
7.4.150.0110.00717.40
7.4.140.0120.00617.86
7.4.130.0110.01116.82
7.4.120.0110.00716.72
7.4.110.0070.01116.76
7.4.100.0140.00616.72
7.4.90.0090.00916.73
7.4.80.0060.01219.39
7.4.70.0130.01316.70
7.4.60.0060.01216.63
7.4.50.0050.00316.77
7.4.40.0060.01222.77
7.4.30.0060.01216.82
7.4.00.0070.01015.09
7.3.330.0030.00313.33
7.3.320.0000.00513.51
7.3.310.0080.00016.52
7.3.300.0070.00016.60
7.3.290.0070.01116.58
7.3.280.0110.00416.51
7.3.270.0130.01017.40
7.3.260.0150.00416.50
7.3.250.0100.01216.61
7.3.240.0190.00016.79
7.3.230.0090.01016.57
7.3.210.0100.01016.52
7.3.200.0160.00619.39
7.3.190.0120.01216.64
7.3.180.0120.00316.57
7.3.170.0120.00416.53
7.3.160.0140.00316.84
7.3.120.0080.00915.04
7.3.110.0090.00914.98
7.3.100.0040.01115.14
7.3.90.0000.01714.65
7.3.80.0000.01815.21
7.3.70.0120.00414.91
7.3.60.0000.01214.74
7.3.50.0040.01115.10
7.3.40.0030.01014.91
7.3.30.0140.00015.09
7.3.20.0070.00716.65
7.3.10.0040.00716.90
7.3.00.0100.00416.51
7.2.330.0060.01316.71
7.2.320.0160.00316.64
7.2.310.0060.01317.05
7.2.300.0110.00616.88
7.2.290.0110.00716.88
7.2.250.0060.01315.03
7.2.240.0150.00615.28
7.2.230.0110.00414.87
7.2.220.0030.01315.31
7.2.210.0030.01015.38
7.2.200.0030.01315.11
7.2.190.0000.01214.89
7.2.180.0060.00915.11
7.2.170.0040.00815.31
7.2.60.0100.00317.00
7.2.00.0080.00419.64
7.1.330.0030.01015.59
7.1.320.0070.00715.86
7.1.310.0070.00715.80
7.1.300.0110.00015.77
7.1.290.0030.00716.06
7.1.280.0070.00715.93
7.1.270.0030.01015.91
7.1.260.0000.00915.84
7.1.200.0000.01216.00
7.1.100.0000.01717.86
7.1.70.0030.00617.49
7.1.60.0070.02019.82
7.1.50.0090.01317.39
7.1.00.0030.07722.72
7.0.200.0000.01217.16
7.0.140.0070.06722.39
7.0.110.0030.06320.49
7.0.100.0030.04320.50
7.0.90.0030.08020.19
7.0.80.0130.07320.21
7.0.70.0070.08020.16
7.0.60.0230.06720.27
7.0.50.0070.08020.17
7.0.40.0170.06020.13
7.0.30.0100.04720.19
7.0.20.0100.05720.23
7.0.10.0030.04720.05
7.0.00.0100.08020.02
5.6.280.0070.07021.41
5.6.260.0070.08320.90
5.6.250.0070.08320.93
5.6.240.0070.08320.85
5.6.230.0030.06020.86
5.6.220.0100.07320.82
5.6.210.0030.08020.75
5.6.200.0100.06721.02
5.6.190.0030.08720.89
5.6.180.0100.08020.83
5.6.170.0000.06721.05
5.6.160.0100.08020.88
5.6.150.0030.07020.89
5.6.140.0130.08320.86
5.6.130.0100.08321.00
5.6.120.0170.07720.97
5.6.110.0100.07021.03
5.6.100.0100.08720.87
5.6.90.0070.07320.98
5.6.80.0170.06320.24
5.6.70.0030.04320.23
5.6.60.0070.07720.26
5.6.50.0130.03320.45
5.6.40.0070.08020.43
5.6.30.0130.07320.18
5.6.20.0100.08020.24
5.6.10.0070.07720.40
5.6.00.0070.07320.21
5.5.380.0070.06018.08
5.5.370.0070.08017.88
5.5.360.0130.06717.91
5.5.350.0070.06317.85
5.5.340.0130.07318.29
5.5.330.0130.05318.38
5.5.320.0100.08018.26
5.5.310.0100.07318.24
5.5.300.0130.07318.29
5.5.290.0030.08018.36
5.5.280.0100.05718.27
5.5.270.0070.08018.38
5.5.260.0100.08718.25
5.5.250.0030.05318.06
5.5.240.0030.08017.77
5.5.230.0100.09017.67
5.5.220.0130.07317.63
5.5.210.0100.04017.63
5.5.200.0100.07317.72
5.5.190.0030.05017.93
5.5.180.0070.08317.72
5.5.160.0030.07317.61
5.5.150.0070.05717.60
5.5.140.0030.08317.56
5.5.130.0030.05017.74
5.5.120.0130.07017.59
5.5.110.0170.03317.92
5.5.100.0070.08017.62
5.5.90.0130.06717.54
5.5.80.0030.08017.54
5.5.70.0000.07717.60
5.5.60.0270.04717.49
5.5.50.0070.07717.60
5.5.40.0170.07017.64
5.5.30.0130.06017.45
5.5.20.0130.06717.50
5.5.10.0100.07317.82
5.5.00.0070.07017.61
5.4.450.0130.07319.98
5.4.440.0030.08719.54
5.4.430.0170.06719.83
5.4.420.0100.07019.82
5.4.410.0100.07719.47
5.4.400.0030.03719.23
5.4.390.0070.07719.52
5.4.380.0070.04019.23
5.4.370.0030.07719.51
5.4.360.0070.03719.15
5.4.350.0000.08019.64
5.4.340.0100.07319.50
5.4.320.0070.08019.14
5.4.310.0100.06719.50
5.4.300.0130.07719.49
5.4.290.0130.07319.22
5.4.280.0270.05719.40
5.4.270.0000.06719.57
5.4.260.0000.08719.41
5.4.250.0130.07319.45
5.4.240.0030.07719.49
5.4.230.0000.08019.50
5.4.220.0000.07019.18
5.4.210.0100.07319.63
5.4.200.0030.07719.21
5.4.190.0070.07019.38
5.4.180.0030.08019.63
5.4.170.0070.04719.27
5.4.160.0100.07719.16
5.4.150.0000.09019.55
5.4.140.0100.07016.67
5.4.130.0030.06716.98
5.4.120.0100.03316.66
5.4.110.0070.05316.82
5.4.100.0070.07316.73
5.4.90.0100.07016.63
5.4.80.0130.02716.96
5.4.70.0100.07716.90
5.4.60.0070.07716.82
5.4.50.0030.07716.78
5.4.40.0100.03716.70
5.4.30.0100.05716.70
5.4.20.0000.08316.88
5.4.10.0100.06016.61
5.4.00.0070.07016.27
5.3.290.0100.07314.88
5.3.280.0100.06714.77
5.3.270.0000.05314.75
5.3.260.0030.08014.92
5.3.250.0070.04314.74
5.3.240.0170.04314.89
5.3.230.0030.07714.59
5.3.220.0000.04014.80
5.3.210.0100.07014.85
5.3.200.0130.07014.86
5.3.190.0070.08014.68
5.3.180.0070.07714.90
5.3.170.0070.07014.79
5.3.160.0070.04314.70
5.3.150.0000.08014.77
5.3.140.0070.06014.79
5.3.130.0070.05314.70
5.3.120.0070.07314.89
5.3.110.0130.04014.77
5.3.100.0000.08714.25
5.3.90.0100.07314.30
5.3.80.0100.07314.36
5.3.70.0130.06014.20
5.3.60.0030.07314.23
5.3.50.0070.07314.17
5.3.40.0100.07014.09
5.3.30.0070.05014.13
5.3.20.0130.04313.88
5.3.10.0030.06713.65
5.3.00.0070.05314.07
5.2.170.0030.04311.57
5.2.160.0030.06311.34
5.2.150.0170.05311.43
5.2.140.0030.06311.25
5.2.130.0000.06711.32
5.2.120.0130.05711.09
5.2.110.0070.06011.44
5.2.100.0000.05711.23
5.2.90.0000.05011.38
5.2.80.0030.04711.52
5.2.70.0000.03311.27
5.2.60.0070.06311.22
5.2.50.0030.06311.17
5.2.40.0070.05711.34
5.2.30.0030.04711.19
5.2.20.0070.05711.11
5.2.10.0100.05011.19
5.2.00.0030.06310.93
5.1.60.0030.05310.43
5.1.50.0100.05310.15
5.1.40.0100.04310.28
5.1.30.0070.05710.51
5.1.20.0000.06010.78
5.1.10.0030.05710.31
5.1.00.0070.04010.39
5.0.50.0000.0478.85
5.0.40.0030.0478.56
5.0.30.0070.0608.48
5.0.20.0000.0378.45
5.0.10.0030.0478.32
5.0.00.0070.0478.59
4.4.90.0000.0306.78
4.4.80.0070.0306.78
4.4.70.0000.0406.78
4.4.60.0000.0276.78
4.4.50.0070.0176.78
4.4.40.0000.0376.78
4.4.30.0030.0336.78
4.4.20.0000.0406.78
4.4.10.0030.0206.78
4.4.00.0000.0336.78
4.3.110.0030.0306.78
4.3.100.0070.0306.78
4.3.90.0030.0276.78
4.3.80.0030.0536.78
4.3.70.0030.0336.78
4.3.60.0030.0306.78
4.3.50.0000.0376.78
4.3.40.0070.0506.78
4.3.30.0000.0336.78
4.3.20.0100.0276.78
4.3.10.0000.0336.78
4.3.00.0000.0376.78

preferences:
45.92 ms | 400 KiB | 5 Q