3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = file_get_contents('http://gamesurf.tiscali.it/dynamic/articolo/CHIAVE/fina1294224760111/TIPO_PAGINA/recensione'); $dom = new DOMDocument(); @$dom->loadHTML($data); $span = $dom->getElementsByTagName('span'); $paragraph = $dom->getElementsByTagName('p'); $startList = '<ol type="1">'; $endList = '</ol>'; $tBox = array(); $pBox = array(); foreach ($span as $s) { if ($s->hasAttribute('class') && $s->getAttribute('class') == 'boxtitle2') { array_push($tBox,$dom->saveHTML($s)); } } foreach ($paragraph as $p) { if ($p->hasAttribute('class') && $p->getAttribute('class') == 'boxp') { array_push($pBox,html_entity_decode($dom->saveHTML($p))); } } if (!empty($tBox) && !empty($pBox)) { foreach ($tBox as $k => $v) { $commento = $commento.'<li>'.$v.' - '.htmlentities($pBox[$k]).'</li>'; } $commento = $startList.$commento.$endList; } echo $commento; ?>

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.0070.01118.73
8.3.50.0130.00422.18
8.3.40.0120.00618.78
8.3.30.0070.01419.46
8.3.20.0050.00320.64
8.3.10.0080.00024.02
8.3.00.0030.00521.07
8.2.180.0160.00618.92
8.2.170.0110.00419.40
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.00522.51
8.2.110.0030.00620.76
8.2.100.0090.00317.97
8.2.90.0040.00420.75
8.2.80.0080.00018.29
8.2.70.0000.00818.04
8.2.60.0030.00518.16
8.2.50.0050.00318.10
8.2.40.0040.00420.85
8.2.30.0080.00018.17
8.2.20.0030.00517.89
8.2.10.0050.00318.09
8.2.00.0060.00318.02
8.1.280.0120.00325.92
8.1.270.0060.00324.16
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00724.04
8.1.230.0080.00421.13
8.1.220.0000.00817.90
8.1.210.0040.00419.00
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0040.00418.85
8.1.160.0040.00422.30
8.1.150.0000.00718.80
8.1.140.0070.00017.59
8.1.130.0040.00417.98
8.1.120.0000.00717.64
8.1.110.0020.00517.64
8.1.100.0000.00817.59
8.1.90.0040.00417.64
8.1.80.0000.00717.53
8.1.70.0000.00717.44
8.1.60.0050.00317.77
8.1.50.0040.00417.79
8.1.40.0070.00017.73
8.1.30.0050.00317.75
8.1.20.0040.00417.79
8.1.10.0080.00017.77
8.1.00.0060.00317.80
8.0.300.0060.00320.23
8.0.290.0060.00317.13
8.0.280.0030.00418.78
8.0.270.0070.00017.46
8.0.260.0060.00317.07
8.0.250.0070.00017.31
8.0.240.0000.00817.11
8.0.230.0000.00717.36
8.0.220.0000.00717.21
8.0.210.0040.00417.21
8.0.200.0070.00017.23
8.0.190.0000.00717.27
8.0.180.0090.00017.24
8.0.170.0040.00417.18
8.0.160.0080.00017.21
8.0.150.0000.00817.19
8.0.140.0000.00717.11
8.0.130.0030.00313.73
8.0.120.0030.00617.27
8.0.110.0050.00317.42
8.0.100.0040.00417.32
8.0.90.0000.00817.16
8.0.80.0120.00917.29
8.0.70.0000.00817.45
8.0.60.0060.00317.12
8.0.50.0000.00817.26
8.0.30.0120.01317.39
8.0.20.0110.01117.54
8.0.10.0040.00417.22
8.0.00.0070.01517.00
7.4.330.0030.00315.32
7.4.320.0050.00316.86
7.4.300.0030.00316.71
7.4.290.0000.00716.83
7.4.280.0030.00316.77
7.4.270.0070.00016.73
7.4.260.0040.00416.76
7.4.250.0000.00716.82
7.4.240.0000.00716.85
7.4.230.0000.00816.84
7.4.220.0100.01016.87
7.4.210.0080.01016.74
7.4.200.0070.00016.66
7.4.190.0040.00416.96
7.4.160.0060.01216.60
7.4.150.0090.00917.40
7.4.140.0180.00817.86
7.4.130.0140.01116.86
7.4.120.0090.01116.89
7.4.110.0100.00716.90
7.4.100.0130.01016.80
7.4.90.0130.00916.82
7.4.80.0060.01116.55
7.4.70.0070.01316.64
7.4.60.0070.01717.03
7.4.50.0040.00416.74
7.4.40.0030.01522.77
7.4.30.0120.00616.81
7.4.00.0030.01315.02
7.3.330.0030.00313.45
7.3.320.0000.00513.46
7.3.310.0040.00416.53
7.3.300.0050.00216.67
7.3.290.0150.00616.54
7.3.280.0110.01516.56
7.3.270.0180.00717.40
7.3.260.0080.01316.80
7.3.250.0090.00816.56
7.3.240.0060.01216.77
7.3.230.0060.01516.87
7.3.210.0100.00916.70
7.3.200.0110.00619.39
7.3.190.0090.01316.79
7.3.180.0130.00316.44
7.3.170.0100.00716.68
7.3.160.0030.01316.63
7.3.120.0120.00314.89
7.2.330.0150.00616.87
7.2.320.0110.00716.93
7.2.310.0150.00616.64
7.2.300.0030.01516.82
7.2.290.0070.01116.98
7.2.60.0030.01417.26
7.2.00.0060.00819.85
7.1.200.0040.00915.98
7.1.100.0080.00818.58
7.1.70.0090.00617.54
7.1.60.0070.01419.22
7.1.50.0150.00335.38
7.1.00.0030.07722.88
7.0.200.0050.00917.01
7.0.140.0000.07022.54
7.0.60.0170.07320.38
7.0.50.0100.08018.37
7.0.40.0170.08020.54
7.0.30.0030.08720.45
7.0.20.0300.08320.44
7.0.10.0100.05720.48
7.0.00.0030.05020.54
5.6.280.0070.07321.19
5.6.210.0100.04720.88
5.6.200.0070.08318.57
5.6.190.0030.05021.04
5.6.180.0300.05321.05
5.6.170.0270.05020.80
5.6.160.0030.06320.83
5.6.150.0030.04018.54
5.6.140.0100.07018.57
5.6.130.0070.04018.52
5.6.120.0030.05721.54
5.6.110.0070.07021.51
5.6.100.0100.06021.36
5.6.90.0070.09021.53
5.6.80.0100.06320.89
5.5.350.0330.06720.65
5.5.340.0070.08018.31
5.5.330.0100.03720.96
5.5.320.0300.07720.63
5.5.310.0300.05720.60
5.5.300.0100.03718.46
5.5.290.0070.08718.26
5.5.280.0100.08321.17
5.5.270.0070.07721.09
5.5.260.0170.07721.06
5.5.250.0070.06720.83
5.5.240.0030.05320.56
5.4.450.0330.08320.02
5.4.440.0370.06719.98
5.4.430.0400.05019.93
5.4.420.0300.04720.16
5.4.410.0400.04319.77
5.4.400.0270.04019.70
5.4.390.0530.05319.57
5.4.380.0400.06019.68
5.4.370.0470.06319.61
5.4.360.0330.04719.84
5.4.350.0270.05719.66
5.4.340.0400.07319.65
5.4.320.0400.04719.61
5.4.310.0300.05019.64
5.4.300.0370.06319.84
5.4.290.0270.04319.66
5.4.280.0400.05019.77
5.4.270.0400.04019.61
5.4.260.0330.03319.59
5.4.250.0400.05019.61
5.4.240.0400.05719.72
5.4.230.0330.05019.72
5.4.220.0430.06019.70
5.4.210.0370.06019.83
5.4.200.0230.06019.57
5.4.190.0300.04719.63
5.4.180.0330.07019.74
5.4.170.0400.07019.56
5.4.160.0300.07319.64
5.4.150.0400.06019.59
5.4.140.0270.04716.94
5.4.130.0270.04716.91
5.4.120.0330.06317.08
5.4.110.0330.04016.97
5.4.100.0330.06717.18
5.4.90.0330.06716.94
5.4.80.0300.06317.12
5.4.70.0370.06017.20
5.4.60.0300.05317.04
5.4.50.0330.04317.18
5.4.40.0370.07016.94
5.4.30.0370.05017.09
5.4.20.0300.05017.18
5.4.10.0330.04717.07
5.4.00.0500.05716.67
5.3.290.0330.05015.12
5.3.280.0530.03015.03
5.3.270.0470.06314.93
5.3.260.0400.06715.01
5.3.250.0370.04714.96
5.3.240.0370.06315.02
5.3.230.0370.03315.04
5.3.220.0370.06315.10
5.3.210.0300.08014.78
5.3.200.0370.06015.05
5.3.190.0400.04714.90
5.3.180.0400.06715.09
5.3.170.0430.06014.79
5.3.160.0370.06315.09
5.3.150.0300.04314.96
5.3.140.0370.06715.06
5.3.130.0370.03014.76
5.3.120.0330.05315.00
5.3.110.0500.06014.83
5.3.100.0500.05714.39
5.3.90.0430.07014.30
5.3.80.0400.04014.47
5.3.70.0430.06314.38
5.3.60.0430.06014.37
5.3.50.0400.04314.32
5.3.40.0300.05714.29
5.3.30.0300.03314.27
5.3.20.0270.03314.20
5.3.10.0270.03313.88
5.3.00.0270.04013.95
5.2.170.0300.02312.32
5.2.160.0200.03012.32
5.2.150.0200.03012.32
5.2.140.0230.02712.32
5.2.130.0230.02712.32
5.2.120.0200.03012.32
5.2.110.0230.02712.32
5.2.100.0200.03012.32
5.2.90.0300.03012.32
5.2.80.0200.03012.32
5.2.70.0200.04312.32
5.2.60.0200.03012.32
5.2.50.0230.03012.32
5.2.40.0170.03012.32
5.2.30.0270.01712.32
5.2.20.0270.02012.32
5.2.10.0170.02712.32
5.2.00.0230.02312.32
5.1.60.0170.02312.32
5.1.50.0130.02712.32
5.1.40.0230.02712.32
5.1.30.0130.03012.32
5.1.20.0170.02712.32
5.1.10.0130.02712.32
5.1.00.0200.02312.32
5.0.50.0130.01712.32
5.0.40.0130.01312.32
5.0.30.0070.03012.32
5.0.20.0070.02012.32
5.0.10.0100.02012.32
5.0.00.0100.03312.32
4.4.90.0070.01712.32
4.4.80.0100.01712.32
4.4.70.0100.01312.32
4.4.60.0100.01712.32
4.4.50.0070.01712.32
4.4.40.0130.02012.32
4.4.30.0100.01712.32
4.4.20.0070.02012.32
4.4.10.0070.01712.32
4.4.00.0100.02312.32
4.3.110.0100.01312.32
4.3.100.0100.01312.32
4.3.90.0100.01312.32
4.3.80.0100.02312.32
4.3.70.0100.01312.32
4.3.60.0070.01712.32
4.3.50.0130.01712.32
4.3.40.0070.02312.32
4.3.30.0030.01712.32
4.3.20.0070.01312.32
4.3.10.0030.01712.32
4.3.00.0100.01012.32

preferences:
43.78 ms | 401 KiB | 5 Q