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); echo $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.0070.01316.61
8.3.50.0070.00716.39
8.3.40.0000.01719.27
8.3.30.0070.00718.93
8.3.20.0040.00420.60
8.3.10.0050.00323.76
8.3.00.0040.00423.91
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0030.01320.68
8.2.150.0040.00425.66
8.2.140.0000.00924.66
8.2.130.0090.00020.08
8.2.120.0000.00826.35
8.2.110.0120.00020.72
8.2.100.0090.00317.77
8.2.90.0040.00419.52
8.2.80.0080.00018.18
8.2.70.0030.00617.88
8.2.60.0080.00018.16
8.2.50.0040.00418.07
8.2.40.0000.00822.51
8.2.30.0020.00519.59
8.2.20.0050.00218.02
8.2.10.0100.00018.21
8.2.00.0000.00818.36
8.1.280.0140.00325.92
8.1.270.0080.00024.09
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00323.82
8.1.230.0070.00421.09
8.1.220.0040.00418.02
8.1.210.0000.00818.77
8.1.200.0000.00917.50
8.1.190.0080.00017.35
8.1.180.0000.00918.10
8.1.170.0040.00418.54
8.1.160.0040.00420.79
8.1.150.0080.00018.91
8.1.140.0000.00819.74
8.1.130.0030.00317.82
8.1.120.0050.00317.64
8.1.110.0080.00017.62
8.1.100.0040.00417.56
8.1.90.0000.00717.61
8.1.80.0000.00717.60
8.1.70.0040.00417.64
8.1.60.0040.00417.74
8.1.50.0030.00717.81
8.1.40.0030.00517.80
8.1.30.0050.00317.89
8.1.20.0000.00717.87
8.1.10.0000.00717.78
8.1.00.0000.00717.71
8.0.300.0060.00318.77
8.0.290.0070.00017.00
8.0.280.0000.00718.54
8.0.270.0000.00717.47
8.0.260.0040.00417.36
8.0.250.0000.01117.14
8.0.240.0030.00317.21
8.0.230.0040.00417.16
8.0.220.0070.00017.12
8.0.210.0050.00217.11
8.0.200.0040.00417.13
8.0.190.0070.00017.14
8.0.180.0030.00817.16
8.0.170.0080.00017.07
8.0.160.0040.00416.98
8.0.150.0000.00717.10
8.0.140.0000.00717.01
8.0.130.0000.00613.50
8.0.120.0030.00516.96
8.0.110.0050.00216.98
8.0.100.0000.00717.14
8.0.90.0080.00016.93
8.0.80.0100.00717.01
8.0.70.0070.00017.20
8.0.60.0050.00217.15
8.0.50.0000.00716.84
8.0.30.0110.00817.46
8.0.20.0070.01217.45
8.0.10.0030.00517.21
8.0.00.0100.01116.92
7.4.330.0000.00516.95
7.4.320.0000.00616.69
7.4.300.0030.00516.69
7.4.290.0060.00316.64
7.4.280.0090.00016.73
7.4.270.0040.00416.71
7.4.260.0080.00016.59
7.4.250.0050.00316.66
7.4.240.0040.00316.78
7.4.230.0050.00216.72
7.4.220.0110.00716.77
7.4.210.0060.00916.74
7.4.200.0050.00216.59
7.4.160.0080.00816.61
7.4.150.0040.01617.40
7.4.140.0110.00717.86
7.4.130.0130.01116.52
7.4.120.0090.01016.80
7.4.110.0090.00916.71
7.4.100.0120.00916.63
7.4.90.0110.00716.70
7.4.80.0040.01419.39
7.4.70.0070.01116.86
7.4.60.0070.01116.68
7.4.50.0060.00616.72
7.4.40.0100.00616.79
7.4.30.0030.01316.82
7.4.00.0070.00914.98
7.3.330.0050.00013.24
7.3.320.0040.00413.32
7.3.310.0070.00016.31
7.3.300.0070.00016.48
7.3.290.0080.00916.48
7.3.280.0080.00716.42
7.3.270.0080.00817.40
7.3.260.0060.01216.65
7.3.250.0120.00716.53
7.3.240.0060.01316.59
7.3.230.0070.01016.58
7.3.210.0140.00316.52
7.3.200.0120.01219.39
7.3.190.0040.01416.44
7.3.180.0090.01416.40
7.3.170.0150.00616.52
7.3.160.0170.00616.52
7.3.120.0130.00314.91
7.3.110.0040.01414.79
7.3.100.0090.00614.60
7.3.90.0070.01014.61
7.3.80.0090.00614.92
7.3.70.0100.00615.09
7.3.60.0000.01114.70
7.3.50.0030.01314.97
7.3.40.0060.00614.87
7.3.30.0070.01014.87
7.3.20.0060.00916.72
7.3.10.0080.00916.44
7.3.00.0090.00816.51
7.2.330.0060.01016.82
7.2.320.0080.01216.82
7.2.310.0080.00816.59
7.2.300.0120.00916.73
7.2.290.0090.00916.84
7.2.250.0060.01315.09
7.2.240.0060.01215.00
7.2.230.0060.00815.13
7.2.220.0130.00315.04
7.2.210.0070.00715.36
7.2.200.0070.00715.05
7.2.190.0090.00315.10
7.2.180.0000.01514.99
7.2.170.0050.00515.00
7.2.130.0220.01116.85
7.2.120.0190.01116.96
7.2.110.0070.01416.29
7.2.100.0110.00716.60
7.2.90.0120.01516.37
7.2.80.0250.00716.75
7.2.70.0160.00616.41
7.2.60.0120.00616.71
7.2.50.0120.00816.50
7.2.40.0200.00816.30
7.2.30.0170.01316.48
7.2.20.0090.00916.81
7.2.10.0130.00516.58
7.2.00.0100.00618.11
7.1.330.0070.00715.98
7.1.320.0040.00715.66
7.1.310.0040.00715.82
7.1.300.0070.00616.11
7.1.290.0090.00416.09
7.1.280.0060.00615.67
7.1.270.0080.00015.69
7.1.260.0100.00015.75
7.1.250.0200.00315.45
7.1.200.0000.01115.75
7.1.100.0070.00718.29
7.1.70.0000.00717.41
7.1.60.0070.01819.30
7.1.50.0070.01417.05
7.1.00.0030.07722.52
7.0.200.0050.00216.89
7.0.60.0200.08021.86
7.0.50.0070.07717.95
7.0.40.0130.05320.23
7.0.30.0300.05720.38
7.0.20.0370.07320.37
7.0.10.0030.04720.37
7.0.00.0100.08020.22
5.6.280.0100.05021.02
5.6.210.0070.07320.52
5.6.200.0100.03718.19
5.6.190.0100.07720.68
5.6.180.0370.04720.74
5.6.170.0270.08320.48
5.6.160.0100.07720.77
5.6.150.0030.04318.15
5.6.140.0030.08318.27
5.6.130.0070.07318.22
5.6.120.0070.05721.02
5.6.110.0030.08321.03
5.6.100.0130.06021.00
5.6.90.0030.07721.09
5.6.80.0030.03720.48
5.5.350.0200.08020.43
5.5.340.0100.05018.05
5.5.330.0130.07720.22
5.5.320.0630.06320.43
5.5.310.0270.04320.36
5.5.300.0030.05018.02
5.5.290.0100.06718.03
5.5.280.0070.06720.87
5.5.270.0100.03720.94
5.5.260.0030.05020.91
5.5.250.0070.03720.68
5.5.240.0100.04320.32

preferences:
78.71 ms | 401 KiB | 5 Q