3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $html = "<!DOCTYPE html><html><head><meta charset=utf-8><style>span::before{ content: \"⚡️\"; }</style></head><body><span></span></body></html>"; $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'); $dom->loadHTML( $html ); echo $dom->saveHTML( $dom->documentElement ); echo "\n\n"; echo $dom->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.5.30.0120.00521.33
8.5.20.0110.00920.43
8.5.10.0100.01120.47
8.5.00.0110.01420.09
8.4.180.0090.01320.02
8.4.170.0040.00622.31
8.4.160.0150.00824.20
8.4.150.0080.00517.01
8.4.140.0120.01118.11
8.4.130.0110.00918.78
8.4.120.0130.00822.40
8.4.110.0110.00922.42
8.4.100.0140.00718.14
8.4.90.0060.00417.99
8.4.80.0130.00918.24
8.4.70.0090.01018.12
8.4.60.0090.00718.30
8.4.50.0170.00518.08
8.4.40.0130.00620.80
8.4.30.0130.00718.93
8.4.20.0100.01020.72
8.4.10.0060.00322.30
8.3.300.0090.01120.89
8.3.290.0130.00821.13
8.3.280.0140.00718.67
8.3.270.0120.00816.78
8.3.260.0140.00616.79
8.3.250.0070.01318.96
8.3.240.0110.00817.02
8.3.230.0130.00616.80
8.3.220.0110.00817.36
8.3.210.0100.00816.90
8.3.200.0130.00716.76
8.3.190.0130.00617.00
8.3.180.0080.00717.06
8.3.170.0090.00919.12
8.3.160.0110.00718.73
8.3.150.0090.00919.34
8.3.140.0030.00718.80
8.3.130.0000.00918.64
8.3.120.0040.01220.97
8.3.110.0110.00020.94
8.3.100.0060.00317.04
8.3.90.0090.00926.77
8.3.80.0040.00718.43
8.3.70.0090.00618.75
8.3.60.0120.00318.68
8.3.50.0110.00717.04
8.3.40.0030.01020.23
8.3.30.0030.01219.02
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.300.0160.00922.34
8.2.290.0110.00820.55
8.2.280.0040.00417.05
8.2.270.0040.00416.89
8.2.260.0070.01318.93
8.2.250.0080.00016.95
8.2.240.0070.01417.28
8.2.230.0080.00022.58
8.2.220.0070.00324.06
8.2.210.0060.00326.77
8.2.200.0030.00618.79
8.2.190.0040.01117.00
8.2.180.0110.00717.13
8.2.170.0090.00919.14
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.19
8.2.110.0030.00622.38
8.2.100.0040.00819.89
8.2.90.0000.00817.88
8.2.80.0040.00418.95
8.2.70.0040.00417.88
8.2.60.0060.00617.88
8.2.50.0150.00419.52
8.2.40.0100.00719.52
8.2.30.0130.00319.52
8.2.20.0130.00319.52
8.2.10.0130.00319.52
8.2.00.0180.00019.52
8.1.340.0120.01221.96
8.1.330.0060.00516.84
8.1.320.0040.00516.83
8.1.310.0070.00717.11
8.1.300.0050.00318.51
8.1.290.0030.00730.84
8.1.280.0040.01125.92
8.1.270.0060.00924.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.23
8.1.230.0080.00319.32
8.1.220.0040.00418.04
8.1.210.0000.00918.77
8.1.200.0040.00417.60
8.1.190.0050.00317.76
8.1.180.0130.00419.52
8.1.170.0110.00619.52
8.1.160.0120.00319.52
8.1.150.0080.00819.52
8.1.140.0130.00319.52
8.1.130.0110.00519.52
8.1.120.0110.00619.52
8.1.110.0140.00619.52
8.1.100.0120.00619.52
8.1.90.0090.00919.52
8.1.80.0120.00519.52
8.1.70.0120.00419.52
8.1.60.0130.00419.52
8.1.50.0090.00919.52
8.1.40.0160.00019.52
8.1.30.0130.00319.52
8.1.20.0080.00819.52
8.1.10.0100.00819.52
8.1.00.0250.00019.52
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0080.00819.52
8.0.270.0130.00319.52
8.0.260.0170.00019.52
8.0.250.0110.00419.52
8.0.240.0120.00419.52
8.0.230.0120.00419.52
8.0.220.0140.00319.52
8.0.210.0080.00819.52
8.0.200.0080.00819.52
8.0.190.0120.00619.52
8.0.180.0120.00619.52
8.0.170.0180.00019.52
8.0.160.0130.00319.52
8.0.150.0120.00419.52
8.0.140.0110.00519.52
8.0.130.0160.00019.52
8.0.120.0120.00319.52
8.0.110.0140.00319.52
8.0.100.0140.00519.52
8.0.90.0100.00619.52
8.0.80.0100.00619.52
8.0.70.0120.00419.52
8.0.60.0130.00319.52
8.0.50.0110.00519.52
8.0.30.0100.00519.52
8.0.20.0130.00319.52
8.0.10.0080.00819.52

preferences:
85.02 ms | 1162 KiB | 5 Q