3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom=new DOMDocument; $dom->loadHTML(<<<HTML <div> <a>abc</a> xyz </div> HTML ); $div=$dom->getElementsByTagName("div")->item(0); var_dump($div->childNodes->length);//just to debug $txt=""; foreach(range(0,$div->childNodes->length-1) as $idx) { if($div->childNodes->item($idx)->nodeType==3) { $txt.=$div->childNodes->item($idx)->nodeValue; } } var_dump($txt);

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.4.10.0100.01019.55
8.3.140.0040.01117.26
8.3.130.0070.01116.88
8.3.120.0060.00320.66
8.3.110.0040.00416.90
8.3.100.0080.00024.06
8.3.90.0120.00626.77
8.3.80.0060.00318.68
8.3.70.0150.00616.75
8.3.60.0120.00316.63
8.3.50.0140.00517.76
8.3.40.0140.00019.01
8.3.30.0170.00319.02
8.3.20.0060.00319.10
8.3.10.0040.00420.47
8.3.00.0050.00317.84
8.2.260.0040.00416.80
8.2.250.0070.01316.93
8.2.240.0120.00617.39
8.2.230.0040.00420.94
8.2.220.0060.00337.54
8.2.210.0150.00326.77
8.2.200.0080.00317.13
8.2.190.0160.00317.00
8.2.180.0060.01216.73
8.2.170.0100.01022.96
8.2.160.0070.01122.39
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0050.00320.20
8.2.110.0100.00020.83
8.2.100.0060.00618.03
8.2.90.0050.00319.45
8.2.80.0040.00418.00
8.2.70.0030.00617.75
8.2.60.0040.00418.18
8.2.50.0000.00918.07
8.2.40.0000.00818.41
8.2.30.0000.00818.32
8.2.20.0040.00417.92
8.2.10.0060.00318.02
8.2.00.0000.01117.85
8.1.300.0080.00016.22
8.1.290.0050.00530.84
8.1.280.0040.01125.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00324.05
8.1.230.0060.00617.60
8.1.220.0060.00317.90
8.1.210.0030.00518.77
8.1.200.0070.00317.36
8.1.190.0000.00817.48
8.1.180.0000.01018.10
8.1.170.0030.00518.85
8.1.160.0060.00319.18
8.1.150.0000.00919.18
8.1.140.0040.00417.71
8.1.130.0070.00017.96
8.1.120.0000.00717.66
8.1.110.0030.00517.60
8.1.100.0030.00517.59
8.1.90.0040.00417.69
8.1.80.0040.00417.61
8.1.70.0000.00717.60
8.1.60.0000.00817.80
8.1.50.0040.00417.70
8.1.40.0030.00617.66
8.1.30.0000.00817.80
8.1.20.0000.00817.81
8.1.10.0000.00817.75
8.1.00.0020.00517.74
8.0.300.0000.00820.89
8.0.290.0000.00717.53
8.0.280.0000.00818.67
8.0.270.0000.00717.45
8.0.260.0000.00618.64
8.0.250.0000.00717.18
8.0.240.0110.00017.18
8.0.230.0000.00817.20
8.0.220.0000.00817.20
8.0.210.0080.00017.01
8.0.200.0060.00017.21
8.0.190.0030.00617.14
8.0.180.0000.00817.15
8.0.170.0030.00617.06
8.0.160.0000.00717.23
8.0.150.0040.00417.08
8.0.140.0030.00717.06
8.0.130.0000.00813.55
8.0.120.0000.00816.97
8.0.110.0000.00717.21
8.0.100.0000.00716.93
8.0.90.0040.00417.14
8.0.80.0100.00617.17
8.0.70.0030.00517.18
8.0.60.0050.00217.06
8.0.50.0000.00717.21
8.0.30.0080.01117.32
8.0.20.0130.00717.19
8.0.10.0040.00417.34
8.0.00.0070.01116.85
7.4.330.0000.00513.35
7.4.320.0030.00316.59
7.4.300.0040.00416.66
7.4.290.0030.00316.56
7.4.280.0060.00316.74
7.4.270.0070.00016.64
7.4.260.0060.00013.46
7.4.250.0100.00016.63
7.4.240.0040.00416.86
7.4.230.0000.00716.84
7.4.220.0080.01316.64
7.4.210.0060.01216.69
7.4.200.0000.00716.59
7.4.190.0080.00016.93
7.4.160.0060.01016.71
7.4.150.0090.00916.73
7.4.140.0090.00916.61
7.4.130.0170.01116.87
7.4.120.0110.00616.63
7.4.110.0130.01016.80
7.4.100.0100.00716.80
7.4.90.0090.01216.60
7.4.80.0140.01016.75
7.4.70.0070.01016.68
7.4.60.0100.00716.64
7.4.50.0020.00216.78
7.4.40.0080.00416.45
7.4.30.0070.01016.81
7.4.00.0060.00615.11
7.3.330.0060.00013.29
7.3.320.0030.00313.25
7.3.310.0000.00816.48
7.3.300.0040.00416.29
7.3.290.0050.01116.45
7.3.280.0070.01116.47
7.3.270.0070.01016.48
7.3.260.0070.01416.46
7.3.250.0130.00916.70
7.3.240.0140.00416.36
7.3.230.0100.00716.54
7.3.210.0070.01016.52
7.3.200.0030.01819.39
7.3.190.0080.01116.63
7.3.180.0060.01116.62
7.3.170.0040.01216.51
7.3.160.0060.01016.68
7.3.120.0140.00014.99
7.2.330.0110.01116.55
7.2.320.0130.00616.66
7.2.310.0150.00316.66
7.2.300.0080.00816.92
7.2.290.0070.01016.66
7.2.60.0080.00417.14
7.2.00.0060.00619.50
7.1.200.0070.00315.84
7.1.100.0000.01417.87
7.1.70.0000.01017.33
7.1.60.0100.01319.40
7.1.50.0070.00317.07
7.1.00.0030.07722.47
7.0.200.0000.00716.82
7.0.140.0030.07322.14
7.0.120.0070.07022.09
7.0.60.0100.06021.74
7.0.50.0100.07717.96
7.0.40.0070.04720.10
7.0.30.0170.04320.23
7.0.20.0400.06020.38
7.0.10.0070.04320.09
7.0.00.0070.07020.06
5.6.400.0060.00679.33
5.6.280.0000.07721.02
5.6.210.0100.03720.60
5.6.200.0000.04318.12
5.6.190.0100.07320.68
5.6.180.0170.06720.52
5.6.170.0330.07020.68
5.6.160.0100.03720.55
5.6.150.0000.04718.33
5.6.140.0100.04718.29
5.6.130.0130.05018.18
5.6.120.0030.04321.02
5.6.110.0030.05021.12
5.6.100.0100.08021.16
5.6.90.0000.04320.99
5.6.80.0130.07020.41
5.5.350.0070.06720.48
5.5.340.0070.08017.98
5.5.330.0070.03720.64
5.5.320.0630.07020.27
5.5.310.0230.04020.24
5.5.300.0070.07718.05
5.5.290.0100.03718.04
5.5.280.0130.07320.90
5.5.270.0070.06020.86
5.5.260.0100.04020.94
5.5.250.0030.08020.63
5.5.240.0170.07320.11
5.4.450.0070.04319.64
5.4.440.0070.08019.18
5.4.430.0000.08719.47
5.4.420.0070.07719.54
5.4.410.0070.05319.05
5.4.400.0100.07319.32
5.4.390.0030.08318.86
5.4.380.0100.06319.25
5.4.370.0070.04318.86
5.4.360.0130.07019.25
5.4.350.0070.04719.32
5.4.340.0070.05019.20
5.4.320.0030.06019.25
5.4.310.0070.04719.23
5.4.300.0170.06719.25
5.4.290.0100.03719.21
5.4.280.0000.04319.21
5.4.270.0130.05319.24
5.4.260.0100.07019.22
5.4.250.0070.05019.22
5.4.240.0100.05719.31
5.4.230.0070.04319.16
5.4.220.0130.06719.21
5.4.210.0070.07719.23
5.4.200.0100.07319.20
5.4.190.0100.03719.23
5.4.180.0070.04319.20
5.4.170.0070.03719.30
5.4.160.0070.07319.20
5.4.150.0100.07319.14
5.4.140.0100.07316.61
5.4.130.0070.06016.48
5.4.120.0070.06016.45
5.4.110.0100.07016.52
5.4.100.0130.06316.53
5.4.90.0100.07016.48
5.4.80.0100.07316.36
5.4.70.0100.04016.37
5.4.60.0070.03716.38
5.4.50.0070.05016.46
5.4.40.0030.03716.31
5.4.30.0100.06316.33
5.4.20.0030.04316.38
5.4.10.0070.06716.34
5.4.00.0030.06715.86
5.3.290.0100.07314.53
5.3.280.0070.07314.66
5.3.270.0000.05014.61
5.3.260.0000.06014.62
5.3.250.0070.07314.77
5.3.240.0070.07714.60
5.3.230.0100.06714.49
5.3.220.0070.06714.63
5.3.210.0070.07714.73
5.3.200.0030.08014.60
5.3.190.0130.07014.43
5.3.180.0030.08014.62
5.3.170.0070.07714.59
5.3.160.0030.04714.42
5.3.150.0100.03314.63
5.3.140.0030.07014.62
5.3.130.0130.07014.55
5.3.120.0030.07314.41
5.3.110.0030.05014.56
5.3.100.0000.04314.20
5.3.90.0000.05714.05
5.3.80.0070.07014.04
5.3.70.0070.05314.03
5.3.60.0130.03713.91
5.3.50.0130.03314.11
5.3.40.0100.07014.01
5.3.30.0070.04313.91
5.3.20.0030.04013.69
5.3.10.0070.04713.82
5.3.00.0030.03713.66
5.2.170.0000.03311.22
5.2.160.0100.06011.07
5.2.150.0000.05311.22
5.2.140.0030.04011.20
5.2.130.0030.04711.13
5.2.120.0100.03711.12
5.2.110.0070.03310.99
5.2.100.0070.02311.16
5.2.90.0000.03711.16
5.2.80.0030.03011.16
5.2.70.0000.04711.15
5.2.60.0030.03011.08
5.2.50.0030.06011.04
5.2.40.0070.03311.00
5.2.30.0030.06311.05
5.2.20.0070.03711.11
5.2.10.0000.03310.92
5.2.00.0030.05710.78
5.1.60.0030.04010.10
5.1.50.0000.04710.12
5.1.40.0030.05310.12
5.1.30.0030.05310.41
5.1.20.0030.03310.48
5.1.10.0070.05710.14
5.1.00.0070.04710.04
5.0.50.0000.0308.55
5.0.40.0030.0438.46
5.0.30.0100.0578.38
5.0.20.0030.0308.42
5.0.10.0000.0438.29
5.0.00.0030.0678.25
4.4.90.0000.0337.44
4.4.80.0030.0177.44
4.4.70.0000.0177.44
4.4.60.0030.0177.44
4.4.50.0030.0177.44
4.4.40.0000.0307.44
4.4.30.0030.0277.44
4.4.20.0000.0207.44
4.4.10.0000.0237.44
4.4.00.0070.0277.44
4.3.110.0000.0237.44
4.3.100.0030.0337.44
4.3.90.0030.0337.44
4.3.80.0000.0477.44
4.3.70.0030.0277.44
4.3.60.0030.0307.44
4.3.50.0000.0377.44
4.3.40.0000.0477.44
4.3.30.0000.0337.44
4.3.20.0000.0377.44
4.3.10.0030.0177.44
4.3.00.0070.0307.44

preferences:
15.11 ms | 403 KiB | 5 Q