3v4l.org

run code in 300+ PHP versions simultaneously
<?php $raw_html = <<<EOF <p> Some text here <strong class="wanna-attributes-too">with strong element!</strong>. But there can be even <b>bold</b> tag and many others. </p> EOF; $dom = new DOMDocument(); $dom->loadHTML($raw_html); $html = simplexml_import_dom($dom); var_dump($dom);

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.0160.00616.50
8.3.50.0140.00521.21
8.3.40.0120.00418.92
8.3.30.0150.00018.63
8.3.20.0030.00620.41
8.3.10.0060.00323.78
8.3.00.0040.00423.78
8.2.180.0170.00316.63
8.2.170.0090.00622.96
8.2.160.0040.01420.60
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0060.00618.21
8.2.120.0040.00426.35
8.2.110.0030.00619.52
8.2.100.0090.00318.05
8.2.90.0050.00319.41
8.2.80.0040.00418.16
8.2.70.0040.00417.60
8.2.60.0000.00918.05
8.2.50.0040.00418.07
8.2.40.0060.00422.35
8.2.30.0000.00819.63
8.2.20.0040.00417.77
8.2.10.0040.00420.09
8.2.00.0050.00318.29
8.1.280.0190.00325.92
8.1.270.0000.00924.09
8.1.260.0060.00628.09
8.1.250.0000.00828.09
8.1.240.0040.00422.59
8.1.230.0130.00318.01
8.1.220.0080.00017.91
8.1.210.0040.00418.77
8.1.200.0090.00017.47
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0080.00020.93
8.1.150.0020.00519.10
8.1.140.0030.00519.77
8.1.130.0070.00017.93
8.1.120.0020.00517.64
8.1.110.0040.00417.56
8.1.100.0040.00417.54
8.1.90.0030.00517.61
8.1.80.0040.00417.57
8.1.70.0070.00017.52
8.1.60.0080.00017.73
8.1.50.0070.00417.59
8.1.40.0040.00417.68
8.1.30.0000.00817.85
8.1.20.0050.00317.85
8.1.10.0040.00417.79
8.1.00.0000.00817.71
8.0.300.0050.00518.77
8.0.290.0020.00517.00
8.0.280.0000.00718.68
8.0.270.0000.00717.34
8.0.260.0070.00017.43
8.0.250.0050.00317.06
8.0.240.0070.00017.13
8.0.230.0020.00517.18
8.0.220.0070.00016.98
8.0.210.0040.00417.12
8.0.200.0040.00417.19
8.0.190.0040.00417.02
8.0.180.0000.01217.11
8.0.170.0060.00317.19
8.0.160.0040.00417.13
8.0.150.0000.00816.90
8.0.140.0070.00016.95
8.0.130.0030.00313.50
8.0.120.0030.00517.19
8.0.110.0000.00717.13
8.0.100.0040.00417.20
8.0.90.0050.00217.21
8.0.80.0110.00616.94
8.0.70.0070.00016.88
8.0.60.0050.00216.93
8.0.50.0000.00817.03
8.0.30.0130.00817.27
8.0.20.0100.01017.40
8.0.10.0040.00417.04
8.0.00.0100.01116.96
7.4.330.0000.00516.90
7.4.320.0030.00316.57
7.4.300.0080.00016.84
7.4.290.0030.00616.74
7.4.280.0060.00316.76
7.4.270.0050.00316.64
7.4.260.0050.00316.66
7.4.250.0040.00416.65
7.4.240.0030.00616.70
7.4.230.0050.00216.52
7.4.220.0090.00916.61
7.4.210.0060.01616.63
7.4.200.0030.00316.65
7.4.160.0150.00416.61
7.4.150.0130.00617.40
7.4.140.0120.00917.86
7.4.130.0070.01616.71
7.4.120.0070.01216.62
7.4.110.0000.01916.64
7.4.100.0100.01416.69
7.4.90.0090.00916.49
7.4.80.0130.00919.39
7.4.70.0100.01016.80
7.4.60.0110.01116.50
7.4.50.0040.00816.75
7.4.40.0060.01216.63
7.4.30.0060.01316.57
7.4.00.0090.00714.95
7.3.330.0050.00013.21
7.3.320.0040.00413.24
7.3.310.0000.00816.44
7.3.300.0050.00316.31
7.3.290.0080.00916.39
7.3.280.0100.00816.34
7.3.270.0120.00617.40
7.3.260.0070.01416.39
7.3.250.0120.00716.58
7.3.240.0110.00816.35
7.3.230.0070.01216.39
7.3.210.0080.01116.41
7.3.200.0040.01516.57
7.3.190.0110.00816.65
7.3.180.0070.01416.45
7.3.170.0100.00716.34
7.3.160.0130.01016.69
7.3.120.0130.00614.84
7.3.110.0070.01314.67
7.3.100.0060.01314.61
7.3.90.0120.00614.73
7.3.80.0120.00314.97
7.3.70.0060.00914.86
7.3.60.0140.00014.89
7.3.50.0060.00314.89
7.3.40.0090.00314.53
7.3.30.0060.00914.55
7.3.20.0030.00616.78
7.3.10.0070.00716.60
7.3.00.0080.00616.82
7.2.330.0070.01416.71
7.2.320.0170.01016.84
7.2.310.0050.01516.72
7.2.300.0120.00916.34
7.2.290.0030.01516.68
7.2.250.0060.01215.01
7.2.240.0110.00715.22
7.2.230.0030.01315.10
7.2.220.0000.01114.73
7.2.210.0100.00314.95
7.2.200.0030.01014.88
7.2.190.0030.01414.91
7.2.180.0090.00614.90
7.2.170.0040.01114.89
7.2.60.0090.00416.73
7.2.00.0080.00819.13
7.1.330.0090.00615.93
7.1.320.0040.00415.93
7.1.310.0030.01415.71
7.1.300.0040.00715.56
7.1.290.0110.00415.92
7.1.280.0030.01315.88
7.1.270.0000.01415.64
7.1.260.0070.01015.91
7.1.200.0060.01015.82
7.1.100.0060.00618.24
7.1.70.0000.00816.96
7.1.60.0110.01419.30
7.1.50.0130.00917.06
7.1.00.0030.07722.55
7.0.200.0090.00016.83
7.0.60.0170.04321.84
7.0.50.0100.07317.90
7.0.40.0100.05720.27
7.0.30.0370.07320.37
7.0.20.0500.06320.20
7.0.10.0130.05020.11
7.0.00.0170.08320.27
5.6.280.0070.03720.94
5.6.210.0070.08320.72
5.6.200.0100.07718.20
5.6.190.0000.04720.56
5.6.180.0400.05320.71
5.6.170.0170.05720.51
5.6.160.0130.05720.40
5.6.150.0030.04318.26
5.6.140.0100.07318.25
5.6.130.0100.07018.29
5.6.120.0100.05321.11
5.6.110.0070.08721.19
5.6.100.0030.08021.12
5.6.90.0100.08321.10
5.6.80.0070.04020.42
5.5.350.0200.07720.36
5.5.340.0070.04718.08
5.5.330.0000.05320.36
5.5.320.0530.05720.43
5.5.310.0200.06720.24
5.5.300.0070.07718.09
5.5.290.0070.04018.02
5.5.280.0030.04320.77
5.5.270.0000.06320.80
5.5.260.0100.07020.93
5.5.250.0030.04020.73
5.5.240.0100.03020.33

preferences:
52.06 ms | 401 KiB | 5 Q