3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new DOMDocument('1.0', 'UTF-8'); $x->loadHTML('<html><head></head><body><p>fi</p><p>fai</p><p>foe</p><p>fum</p></body></html>'); $e = $x->getElementsByTagName('p')->item(0); $y = new DOMDocument('1.0', 'UTF-8'); $y->appendChild($y->importNode($e, true); var_dump($y->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)
5.4.270.0050.03712.39
5.4.260.0030.05718.95
5.4.250.0170.04318.84
5.4.240.0100.04718.90
5.4.230.0130.05318.77
5.4.220.0070.05318.96
5.4.210.0000.06018.93
5.4.200.0130.07318.94
5.4.190.0030.05318.99
5.4.180.0100.05019.09
5.4.170.0170.06318.95
5.4.160.0130.05018.84
5.4.150.0100.08018.79
5.4.140.0070.06016.35
5.4.130.0070.05316.25
5.4.120.0070.05016.39
5.4.110.0070.05016.50
5.4.100.0070.06716.42
5.4.90.0100.07316.57
5.4.80.0100.04716.54
5.4.70.0030.05716.51
5.4.60.0000.05716.36
5.4.50.0130.06016.48
5.4.40.0130.04016.53
5.4.30.0130.04316.46
5.4.20.0130.04316.38
5.4.10.0070.06016.30
5.4.00.0100.04715.86
5.3.280.0230.05714.61
5.3.270.0070.05314.31
5.3.260.0000.05714.61
5.3.250.0130.07014.62
5.3.240.0200.05014.63
5.3.230.0100.07014.61
5.3.220.0100.06014.49
5.3.210.0100.06714.73
5.3.200.0100.06314.57
5.3.190.0130.07014.57
5.3.180.0070.05314.42
5.3.170.0070.07314.61
5.3.160.0100.04714.44
5.3.150.0200.05714.58
5.3.140.0100.05714.57
5.3.130.0100.05014.64
5.3.120.0100.05314.47
5.3.110.0070.05714.44
5.3.100.0100.05013.97
5.3.90.0100.05714.04
5.3.80.0070.06013.96
5.3.70.0100.04714.11
5.3.60.0070.05013.87
5.3.50.0100.06013.95
5.3.40.0230.03713.81
5.3.30.0100.04713.96
5.3.20.0170.06313.39
5.3.10.0100.04713.67
5.3.00.0070.05013.79
5.2.170.0170.03011.06
5.2.160.0070.04011.14
5.2.150.0070.04011.16
5.2.140.0070.04011.25
5.2.130.0070.05011.20
5.2.120.0130.03310.86
5.2.110.0070.04011.02
5.2.100.0130.04011.11
5.2.90.0130.05711.25
5.2.80.0170.05310.99
5.2.70.0000.04311.10
5.2.60.0100.05711.20
5.2.50.0100.04311.05
5.2.40.0030.05710.88
5.2.30.0030.04710.88
5.2.20.0100.04011.07
5.2.10.0030.04011.08
5.2.00.0030.04710.77
5.1.60.0100.0439.91
5.1.50.0070.03310.19
5.1.40.0100.03310.13
5.1.30.0100.04710.41
5.1.20.0130.03010.52
5.1.10.0030.05310.04
5.1.00.0000.04310.13
5.0.50.0070.0238.57
5.0.40.0030.0308.46
5.0.30.0030.0438.41
5.0.20.0070.0308.18
5.0.10.0030.0338.41
5.0.00.0000.0578.18
4.4.90.0030.0207.55
4.4.80.0000.0337.55
4.4.70.0100.0137.55
4.4.60.0070.0277.55
4.4.50.0000.0277.55
4.4.40.0000.0377.55
4.4.30.0030.0207.55
4.4.20.0030.0307.55
4.4.10.0070.0177.55
4.4.00.0100.0377.55
4.3.110.0130.0137.55
4.3.100.0030.0207.55
4.3.90.0000.0277.55
4.3.80.0030.0337.55
4.3.70.0030.0277.55
4.3.60.0000.0237.55
4.3.50.0030.0237.55
4.3.40.0030.0477.55
4.3.30.0000.0307.55
4.3.20.0030.0207.55
4.3.10.0070.0207.55
4.3.00.0070.0238.20

preferences:
146 ms | 1394 KiB | 7 Q