3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <div>hello</div> <div>world</div> HTML; $doc = new DOMDocument; $doc->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); echo $doc->saveHTML();

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.90.0150.00426.77
8.3.80.0030.00616.63
8.3.70.0160.00016.88
8.3.60.0100.01016.88
8.3.50.0090.00823.12
8.3.40.0080.00618.72
8.3.30.0080.00519.23
8.3.20.0040.00420.45
8.3.10.0070.00023.82
8.3.00.0030.00519.50
8.2.210.0030.00526.77
8.2.200.0030.00616.75
8.2.190.0060.00916.61
8.2.180.0130.00316.88
8.2.170.0170.00322.96
8.2.160.0110.00320.64
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0140.00026.16
8.2.120.0040.00421.14
8.2.110.0000.01021.30
8.2.100.0040.00818.03
8.2.90.0000.00918.09
8.2.80.0040.00419.41
8.2.70.0050.00317.75
8.2.60.0060.00317.88
8.2.50.0040.00417.75
8.2.40.0040.00418.41
8.2.30.0000.00818.31
8.2.20.0000.00717.94
8.2.10.0000.00718.21
8.2.00.0000.00717.75
8.1.290.0070.00730.84
8.1.280.0090.00625.92
8.1.270.0030.00623.96
8.1.260.0080.00026.35
8.1.250.0030.00328.09
8.1.240.0090.00022.28
8.1.230.0040.00721.10
8.1.220.0080.00017.90
8.1.210.0030.00618.85
8.1.200.0040.00417.38
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0070.00022.22
8.1.150.0040.00418.96
8.1.140.0040.00417.68
8.1.130.0030.00317.98
8.1.120.0000.00717.60
8.1.110.0000.00817.56
8.1.100.0040.00417.55
8.1.90.0000.00717.54
8.1.80.0040.00417.63
8.1.70.0000.00717.52
8.1.60.0030.00617.62
8.1.50.0000.00917.69
8.1.40.0030.00517.74
8.1.30.0050.00317.77
8.1.20.0040.00417.76
8.1.10.0050.00317.77
8.1.00.0000.00817.71
8.0.300.0030.00520.16
8.0.290.0030.00517.00
8.0.280.0030.00318.59
8.0.270.0000.00717.05
8.0.260.0030.00317.57
8.0.250.0030.00317.23
8.0.240.0030.00317.21
8.0.230.0000.00717.13
8.0.220.0070.00017.05
8.0.210.0030.00417.17
8.0.200.0000.00817.11
8.0.190.0000.00717.13
8.0.180.0070.00017.05
8.0.170.0040.00417.15
8.0.160.0000.00817.13
8.0.150.0040.00417.00
8.0.140.0040.00416.99
8.0.130.0050.00313.45
8.0.120.0030.00517.07
8.0.110.0050.00217.09
8.0.100.0030.00517.20
8.0.90.0080.00017.13
8.0.80.0060.00917.15
8.0.70.0040.00417.17
8.0.60.0080.00016.92
8.0.50.0070.00016.80
8.0.30.0130.00917.26
8.0.20.0080.01117.40
8.0.10.0040.00417.21
8.0.00.0110.00616.89
7.4.330.0030.00315.24
7.4.320.0000.00616.70
7.4.300.0000.00616.53
7.4.290.0030.00316.61
7.4.280.0070.00316.82
7.4.270.0000.00716.71
7.4.260.0030.00316.77
7.4.250.0030.00316.60
7.4.240.0040.00416.63
7.4.230.0000.00716.80
7.4.220.0090.01216.76
7.4.210.0060.00916.65
7.4.200.0040.00416.68
7.4.160.0100.00716.61
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0100.00616.63
7.4.120.0100.00716.64
7.4.110.0070.01616.68
7.4.100.0060.01216.71
7.4.90.0070.01016.75
7.4.80.0070.01019.39
7.4.70.0150.01116.87
7.4.60.0110.00816.77
7.4.50.0040.00416.98
7.4.40.0130.00416.77
7.4.30.0060.00916.83
7.4.00.0140.00314.97
7.3.330.0050.00213.29
7.3.320.0050.00013.32
7.3.310.0030.00316.39
7.3.300.0070.00016.37
7.3.290.0040.01116.44
7.3.280.0090.00616.42
7.3.270.0080.00817.40
7.3.260.0130.01016.58
7.3.250.0100.01016.45
7.3.240.0120.00616.56
7.3.230.0100.00616.54
7.3.210.0030.01416.47
7.3.200.0030.01419.39
7.3.190.0030.01516.70
7.3.180.0060.00916.43
7.3.170.0040.01216.44
7.3.160.0070.00716.46
7.3.10.0040.01416.63
7.3.00.0000.01516.53
7.2.330.0070.01016.70
7.2.320.0030.01416.82
7.2.310.0060.01516.80
7.2.300.0090.00616.72
7.2.290.0090.00916.76
7.2.130.0030.00816.89
7.2.120.0120.00316.95
7.2.110.0030.00716.84
7.2.100.0100.00316.61
7.2.90.0070.00317.12
7.2.80.0070.00316.75
7.2.70.0110.00416.71
7.2.60.0070.00316.93
7.2.50.0060.00616.96
7.2.40.0080.00317.04
7.2.30.0130.00016.90
7.2.20.0030.00916.82
7.2.10.0060.00916.68
7.2.00.0110.00418.03
7.1.250.0040.00415.95
7.1.100.0060.00617.96
7.1.70.0000.00717.20
7.1.60.0080.00417.18
7.1.50.0070.01716.94
7.1.00.0000.07722.51
7.0.200.0040.00816.93
7.0.140.0070.06322.13
7.0.60.0070.07719.95
7.0.50.0030.08717.89
7.0.40.0070.07719.98
7.0.30.0330.04720.38
7.0.20.0330.07720.06
7.0.10.0070.04020.26
7.0.00.0070.05020.20
5.6.280.0000.07721.10
5.6.210.0030.05020.54
5.6.200.0100.07718.20
5.6.190.0100.06320.71
5.6.180.0270.06320.41
5.6.170.0200.04720.64
5.6.160.0070.04020.45
5.6.150.0170.07018.24
5.6.140.0030.08718.18
5.6.130.0100.07718.24
5.6.120.0070.04021.03
5.6.110.0100.07721.03
5.6.100.0130.07721.18
5.6.90.0000.06721.02
5.6.80.0130.07720.41
5.5.350.0100.07020.48
5.5.340.0030.05318.02
5.5.330.0130.05020.20
5.5.320.0270.03720.37
5.5.310.0300.08020.39
5.5.300.0200.05317.98
5.5.290.0070.04018.08
5.5.280.0030.04320.84
5.5.270.0070.04020.69
5.5.260.0070.04320.80
5.5.250.0100.08020.73
5.5.240.0230.07320.23
5.4.450.0200.03319.54
5.4.440.0230.04319.55
5.4.430.0230.04319.49
5.4.420.0100.03719.53
5.4.410.0530.04719.36
5.4.400.0330.03019.25
5.4.390.0030.04318.98
5.4.380.0100.06018.77
5.4.370.0200.05718.84
5.4.360.0100.06018.75
5.4.350.0370.05718.70
5.4.340.0070.07318.73
5.4.320.0040.03812.61
5.4.310.0070.04012.61
5.4.300.0100.03312.61
5.4.290.0040.04012.61
5.4.280.0030.03912.50
5.4.270.0080.03912.50
5.4.260.0080.04112.50
5.4.250.0060.03712.50
5.4.240.0070.03512.50
5.4.230.0060.03812.49
5.4.220.0050.03612.49
5.4.210.0080.04412.50
5.4.200.0040.04012.50
5.4.190.0040.03912.49
5.4.180.0110.03312.49
5.4.170.0040.03812.51
5.4.160.0050.03812.50
5.4.150.0060.03612.50
5.4.140.0050.03912.18
5.4.130.0070.03512.17
5.4.120.0060.03612.13
5.4.110.0070.03612.12
5.4.100.0080.03512.13
5.4.90.0030.03912.12
5.4.80.0060.03712.13
5.4.70.0070.03512.12
5.4.60.0060.03512.12
5.4.50.0060.03612.12
5.4.40.0050.04112.11
5.4.30.0050.03612.11
5.4.20.0080.03412.11
5.4.10.0090.03412.11
5.4.00.0120.04411.59
5.3.290.0030.04212.80
5.3.280.0060.03812.70
5.3.270.0060.04012.72
5.3.260.0040.04112.72
5.3.250.0050.03812.72
5.3.240.0070.03612.72
5.3.230.0080.04712.71
5.3.220.0100.03812.68
5.3.210.0090.04112.68
5.3.200.0050.03712.68
5.3.190.0080.04012.68
5.3.180.0150.02912.67
5.3.170.0090.03912.67
5.3.160.0050.03712.68
5.3.150.0050.03912.67
5.3.140.0070.03612.66
5.3.130.0070.03812.66
5.3.120.0050.04412.66
5.3.110.0060.03912.66
5.3.100.0100.03312.13
5.3.90.0050.03712.12
5.3.80.0030.03812.11
5.3.70.0070.03512.11
5.3.60.0050.03612.09
5.3.50.0040.03712.04
5.3.40.0010.04112.04
5.3.30.0060.03412.00
5.3.20.0060.03511.78
5.3.10.0080.03611.75
5.3.00.0060.03711.73
5.2.170.0040.0369.23
5.2.160.0030.0339.23
5.2.150.0060.0299.23
5.2.140.0030.0339.23
5.2.130.0060.0299.19
5.2.120.0040.0309.19
5.2.110.0040.0309.20
5.2.100.0070.0279.20
5.2.90.0070.0279.20
5.2.80.0070.0289.19
5.2.70.0040.0329.19
5.2.60.0040.0319.14
5.2.50.0060.0309.11
5.2.40.0100.0309.09
5.2.30.0040.0309.06
5.2.20.0050.0299.05
5.2.10.0050.0288.97
5.2.00.0050.0288.83
5.1.60.0040.0248.12
5.1.50.0050.0308.12
5.1.40.0050.0238.09
5.1.30.0050.0258.45
5.1.20.0040.0318.47
5.1.10.0040.0268.20
5.1.00.0030.0278.20
5.0.50.0040.0206.67
5.0.40.0050.0186.53
5.0.30.0040.0326.34
5.0.20.0030.0196.32
5.0.10.0010.0226.30
5.0.00.0050.0306.29
4.4.90.0020.0174.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0030.0164.75
4.4.50.0010.0174.77
4.4.40.0070.0214.71
4.4.30.0040.0144.76
4.4.20.0050.0134.85
4.4.10.0020.0194.85
4.4.00.0030.0254.75
4.3.110.0030.0184.67
4.3.100.0030.0164.66
4.3.90.0050.0124.63
4.3.80.0060.0234.58
4.3.70.0030.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0144.63
4.3.40.0050.0224.54
4.3.30.0030.0153.28
4.3.20.0030.0153.26
4.3.10.0020.0163.22
4.3.00.0000.01715.94

preferences:
31.34 ms | 401 KiB | 5 Q