3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "http://www.margonem.pl/?task=clanrank&w=infinity"; $xml = new DOMDocument(); $xml->validateOnParse = true; $xml->loadHTML(file_get_contents($html)); $xpath = new DOMXPath($xml); $table =$xpath->query("//*[@id='ranking']")->item(0); $rows = $table->getElementsByTagName("tr"); foreach ($rows as $row) { $cells = $row -> getElementsByTagName('td'); foreach ($cells as $cell) { print $cell->nodeValue; } }

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.0040.01118.93
8.3.50.0150.00722.26
8.3.40.0120.00319.34
8.3.30.0090.00619.63
8.3.20.0040.00420.71
8.3.10.0040.00424.04
8.3.00.0030.00619.61
8.2.180.0070.01118.58
8.2.170.0070.01319.20
8.2.160.0100.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00822.47
8.2.110.0000.01022.38
8.2.100.0090.00319.83
8.2.90.0080.00018.34
8.2.80.0000.00918.18
8.2.70.0080.00018.16
8.2.60.0000.01018.34
8.2.50.0040.00418.10
8.2.40.0030.00518.16
8.2.30.0050.00318.41
8.2.20.0050.00317.99
8.2.10.0080.00018.23
8.2.00.0040.00418.00
8.1.280.0070.01125.92
8.1.270.0060.00324.19
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.44
8.1.230.0090.00423.06
8.1.220.0000.00818.03
8.1.210.0040.00418.77
8.1.200.0090.00017.34
8.1.190.0040.00417.48
8.1.180.0000.00818.10
8.1.170.0090.00018.81
8.1.160.0030.00522.13
8.1.150.0000.00719.01
8.1.140.0000.00817.50
8.1.130.0040.00417.97
8.1.120.0000.00817.62
8.1.110.0040.00417.69
8.1.100.0070.00017.52
8.1.90.0000.00717.70
8.1.80.0000.00717.57
8.1.70.0040.00417.57
8.1.60.0030.00617.71
8.1.50.0040.00417.65
8.1.40.0040.00417.73
8.1.30.0050.00317.79
8.1.20.0000.00817.87
8.1.10.0040.00417.79
8.1.00.0040.00417.67
8.0.300.0040.00421.89
8.0.290.0030.00617.00
8.0.280.0040.00418.71
8.0.270.0070.00017.38
8.0.260.0030.00317.60
8.0.250.0000.00717.27
8.0.240.0000.00717.16
8.0.230.0070.00017.18
8.0.220.0030.00317.13
8.0.210.0070.00017.10
8.0.200.0030.00317.18
8.0.190.0040.00417.30
8.0.180.0020.00517.09
8.0.170.0030.00617.23
8.0.160.0040.00417.11
8.0.150.0040.00417.11
8.0.140.0040.00417.20
8.0.130.0000.00613.56
8.0.120.0040.00417.20
8.0.110.0060.00317.23
8.0.100.0040.00417.29
8.0.90.0000.00817.30
8.0.80.0080.00817.18
8.0.70.0000.00817.06
8.0.60.0030.00517.12
8.0.50.0040.00417.29
8.0.30.0110.01217.43
8.0.20.0090.01217.53
8.0.10.0000.00817.11
8.0.00.0070.01117.13
7.4.330.0000.00615.02
7.4.320.0000.00716.82
7.4.300.0050.00316.89
7.4.290.0000.00717.00
7.4.280.0070.00716.91
7.4.270.0040.00416.88
7.4.260.0040.00416.85
7.4.250.0000.00916.92
7.4.240.0030.00517.05
7.4.230.0070.00017.11
7.4.220.0090.01316.99
7.4.210.0060.00917.08
7.4.200.0000.00717.02
7.4.160.0140.00416.98
7.4.150.0120.00917.40
7.4.140.0110.01117.86
7.4.130.0150.00316.86
7.4.120.0100.01117.07
7.4.110.0220.00016.89
7.4.100.0030.01517.11
7.4.90.0090.00916.87
7.4.80.0030.01619.39
7.4.70.0140.01517.02
7.4.60.0070.01017.22
7.4.50.0030.00317.04
7.4.40.0000.01716.96
7.4.30.0030.01317.19
7.4.00.0070.01015.19
7.3.330.0070.00013.81
7.3.320.0030.00313.55
7.3.310.0000.00716.95
7.3.300.0070.00016.86
7.3.290.0040.01116.76
7.3.280.0070.00816.76
7.3.270.0170.01017.40
7.3.260.0160.00317.05
7.3.250.0090.00816.80
7.3.240.0150.00616.65
7.3.230.0060.01616.81
7.3.210.0120.00616.89
7.3.200.0120.00619.39
7.3.190.0040.01516.82
7.3.180.0030.01316.68
7.3.170.0070.01116.68
7.3.160.0080.01116.80
7.2.330.0120.00617.15
7.2.320.0140.00717.13
7.2.310.0120.01217.00
7.2.300.0110.00617.20
7.2.290.0200.00017.06
7.2.110.0280.00816.96
7.2.100.0090.00916.87
7.2.90.0390.00616.85
7.2.80.0120.00317.01
7.2.70.0000.01817.16
7.2.60.0110.00917.31
7.2.50.0220.00017.24
7.2.40.0080.00817.16
7.2.30.0150.00417.32
7.2.20.0130.00517.18
7.2.10.0200.01317.07
7.2.00.0100.00518.57
7.1.230.0180.00615.99
7.1.220.0260.00016.09
7.1.210.0150.00016.05
7.1.200.0110.01016.04
7.1.190.0110.00816.18
7.1.180.0320.00316.28
7.1.170.0050.01116.11
7.1.160.0130.00315.78
7.1.150.0130.00315.90
7.1.140.0140.00316.13
7.1.130.0120.00616.13
7.1.120.0100.00716.18
7.1.110.0430.00916.15
7.1.100.0060.01216.21
7.1.90.0150.00415.91
7.1.80.0110.00616.17
7.1.70.0040.00916.96
7.1.60.0100.00416.79
7.1.50.0130.01116.85
7.1.40.0130.00616.32
7.1.30.0110.00516.28
7.1.20.0190.00316.05
7.1.10.0120.00316.13
7.1.00.0040.04419.40
7.0.310.0150.00215.43
7.0.300.0040.01315.60
7.0.290.0140.00415.77
7.0.280.0230.01315.87
7.0.270.0190.00315.46
7.0.260.0290.00315.77
7.0.250.0060.00915.73
7.0.240.0140.00615.80
7.0.230.0300.00715.91
7.0.220.0070.00715.93
7.0.210.0110.00415.91
7.0.200.0080.00916.47
7.0.190.0110.01115.71
7.0.180.0200.00015.82
7.0.170.0090.00415.78
7.0.160.0100.00715.77
7.0.150.0170.00015.73
7.0.140.0100.03719.20
7.0.130.0090.00915.89
7.0.120.0060.01215.60
7.0.110.0380.00015.83
7.0.100.0050.00815.86
7.0.90.0050.01015.43
7.0.80.0130.00415.72
7.0.70.0090.00915.48
7.0.60.0130.02718.11
7.0.50.0100.02817.13
7.0.40.0070.04817.16
7.0.30.0110.02617.23
7.0.20.0140.02617.29
7.0.10.0080.04817.04
7.0.00.0080.04317.26
5.6.380.0160.01214.95
5.6.370.0120.00914.96
5.6.360.0070.01414.56
5.6.350.0050.01115.00
5.6.340.0110.00314.96
5.6.330.0110.00314.93
5.6.320.0130.00414.83
5.6.310.0080.01114.56
5.6.300.0090.00914.81
5.6.290.0060.00914.87
5.6.280.0100.03718.19
5.6.270.0140.00414.62
5.6.260.0170.00014.41
5.6.250.0050.01114.93
5.6.240.0080.00814.86
5.6.230.0110.00814.93
5.6.220.0160.00014.54
5.6.210.0060.04518.06
5.6.200.0070.02516.75
5.6.190.0080.04817.95
5.6.180.0280.03417.93
5.6.170.0180.04617.99
5.6.160.0120.03917.76
5.6.150.0130.04116.79
5.6.140.0080.02516.87
5.6.130.0100.04016.68
5.6.120.0110.04518.19
5.6.110.0080.04318.03
5.6.100.0090.02018.16
5.6.90.0160.04017.93
5.6.80.0080.04317.59
5.6.70.2490.02017.75
5.6.60.0080.00814.55
5.6.50.0130.00314.50
5.6.40.0140.00214.53
5.6.30.0090.00714.68
5.6.20.0110.00714.77
5.6.10.0080.00814.76
5.6.00.0120.00614.61
5.5.380.0130.00312.79
5.5.370.0140.00312.79
5.5.360.0070.00312.79
5.5.350.0150.02116.86
5.5.340.0060.02815.70
5.5.330.0130.03016.81
5.5.320.0260.03716.80
5.5.310.0290.02016.79
5.5.300.0070.02315.60
5.5.290.0110.02715.59
5.5.280.0090.04517.01
5.5.270.0100.03217.13
5.5.260.0080.02017.04
5.5.250.0090.04516.89
5.5.240.0130.04216.81
5.5.230.0100.00312.79
5.5.220.0090.00112.79
5.5.210.0000.01112.79
5.5.200.0070.00312.79
5.5.190.0090.00312.79
5.5.180.0090.00312.79
5.5.170.0120.00514.58
5.5.160.0070.00312.79
5.5.150.0040.00812.79
5.5.140.0160.00012.79
5.5.130.0060.00612.79
5.5.120.0100.00012.79
5.5.110.0110.00412.79
5.5.100.0090.00312.79
5.5.90.0150.00012.79
5.5.80.0100.00012.79
5.5.70.0070.00712.79
5.5.60.0090.00412.79
5.5.50.0150.00012.79
5.5.40.0000.01012.79
5.5.30.0080.00412.79
5.5.20.0140.00012.79
5.5.10.0070.00712.79
5.5.00.0100.00712.79
5.4.450.0530.03416.29
5.4.440.0430.02916.28
5.4.430.0110.02816.38
5.4.420.0490.04516.31
5.4.410.0470.02816.24
5.4.400.0380.03816.06
5.4.390.0510.03716.07
5.4.380.0400.02216.17
5.4.370.0470.02816.14
5.4.360.0330.02416.17
5.4.350.0480.02916.22
5.4.340.0080.02212.55
5.4.330.0050.00512.79
5.4.320.0060.02512.80
5.4.310.0040.02612.80
5.4.300.0110.02712.80
5.4.290.0060.03112.80
5.4.280.0100.01812.75
5.4.270.0080.02212.75
5.4.260.0090.02012.75
5.4.250.0080.01912.75
5.4.240.0080.02012.74
5.4.230.0070.02012.74
5.4.220.0040.02312.74
5.4.210.0080.02512.74
5.4.200.0080.02112.74
5.4.190.0100.01912.74
5.4.180.0090.02012.74
5.4.170.0070.02212.74
5.4.160.0060.02212.74
5.4.150.0040.02412.74
5.4.140.0040.02412.58
5.4.130.0070.02012.58
5.4.120.0060.02112.56
5.4.110.0050.02412.55
5.4.100.0060.02312.55
5.4.90.0110.01912.55
5.4.80.0070.02312.55
5.4.70.0090.01812.55
5.4.60.0060.02012.55
5.4.50.0070.02012.55
5.4.40.0060.02012.54
5.4.30.0050.02212.54
5.4.20.0090.02412.54
5.4.10.0060.02412.54
5.4.00.0050.02112.29
5.3.290.0070.02312.90
5.3.280.0060.02412.86
5.3.270.0100.02012.87
5.3.260.0090.02112.87
5.3.250.0090.01912.87
5.3.240.0090.02112.87
5.3.230.0080.02112.86
5.3.220.0060.02312.85
5.3.210.0040.02612.85
5.3.200.0040.02412.85
5.3.190.0090.02012.85
5.3.180.0080.02112.85
5.3.170.0070.02212.85
5.3.160.0050.02212.85
5.3.150.0100.01912.85
5.3.140.0060.02312.84
5.3.130.0090.02212.84
5.3.120.0070.02112.84
5.3.110.0080.02012.84
5.3.100.0070.02112.58
5.3.90.0080.01912.57
5.3.80.0050.02312.57
5.3.70.0080.02312.57
5.3.60.0060.02212.56
5.3.50.0040.02612.54
5.3.40.0080.02012.54
5.3.30.0050.02512.52
5.3.20.0070.02112.41
5.3.10.0070.01912.39
5.3.00.0100.01712.38
5.2.170.0050.02111.13
5.2.160.0050.01811.13
5.2.150.0070.01911.13
5.2.140.0040.01811.13
5.2.130.0070.01711.11
5.2.120.0090.01311.11
5.2.110.0070.01811.11
5.2.100.0060.01611.12
5.2.90.0050.01811.11
5.2.80.0070.01411.11
5.2.70.0060.01611.11
5.2.60.0070.01611.09
5.2.50.0070.01411.07
5.2.40.0080.01411.06
5.2.30.0050.01711.04
5.2.20.0070.01611.04
5.2.10.0070.01610.99
5.2.00.0070.01510.92
5.1.60.0040.01610.56
5.1.50.0070.01010.56
5.1.40.0020.01610.55
5.1.30.0030.01710.73
5.1.20.0060.01510.74
5.1.10.0070.01210.60
5.1.00.0050.01610.60
5.0.50.0040.0149.84
5.0.40.0040.0119.78
5.0.30.0020.0209.68
5.0.20.0020.0129.65
5.0.10.0020.0139.64
5.0.00.0030.0189.64
4.4.90.0030.0098.78
4.4.80.0040.0088.77
4.4.70.0020.0118.77
4.4.60.0050.0088.77
4.4.50.0020.0108.78
4.4.40.0050.0128.75
4.4.30.0040.0098.78
4.4.20.0070.0078.82
4.4.10.0040.0098.82
4.4.00.0040.0148.78
4.3.110.0030.0098.73
4.3.100.0050.0108.73
4.3.90.0010.0128.71
4.3.80.0020.0148.69
4.3.70.0020.0118.71
4.3.60.0010.0118.71
4.3.50.0010.0128.71
4.3.40.0000.0168.66
4.3.30.0020.0108.04
4.3.20.0020.0108.03
4.3.10.0020.0108.01
4.3.00.0050.0149.90

preferences:
36.03 ms | 401 KiB | 5 Q