3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument; $dom->loadXML('<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>'); $dummy = new DOMDocument; $dummy->loadXML('<element xmlns="http://www.w3.org/2001/XMLSchema" name="username" type="string"/>'); $dom->documentElement->appendChild($dom->importNode($dummy->documentElement)); echo $dom->saveXML();

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.4.120.0120.00820.75
8.4.110.0110.00921.00
8.4.100.0080.00517.96
8.4.90.0110.00918.03
8.4.80.0040.00422.88
8.4.70.0050.00517.95
8.4.60.0140.00619.16
8.4.50.0120.00917.97
8.4.40.0190.00018.06
8.4.30.0040.00418.97
8.4.20.0110.01118.26
8.4.10.0100.00019.48
8.3.250.0110.00819.14
8.3.240.0080.01116.67
8.3.230.0100.01016.82
8.3.220.0100.00917.61
8.3.210.0110.00617.02
8.3.200.0030.00616.81
8.3.190.0060.01316.75
8.3.180.0100.00916.76
8.3.170.0140.00421.02
8.3.160.0160.00317.64
8.3.150.0150.00417.32
8.3.140.0080.00017.60
8.3.130.0030.00316.93
8.3.120.0040.00719.16
8.3.110.0060.00320.94
8.3.100.0030.00724.06
8.3.90.0080.00026.77
8.3.80.0040.00818.55
8.3.70.0330.00317.36
8.3.60.0200.01618.22
8.3.50.0070.01118.62
8.3.40.0180.00620.91
8.3.30.0190.00219.20
8.3.20.0170.00221.08
8.3.10.0180.00320.04
8.3.00.0170.00518.59
8.2.290.0040.00420.74
8.2.280.0030.00518.47
8.2.270.0080.00019.36
8.2.260.0040.01421.17
8.2.250.0100.01017.04
8.2.240.0060.01219.23
8.2.230.0150.00622.58
8.2.220.0190.00037.54
8.2.210.0060.00326.77
8.2.200.0060.00316.88
8.2.190.0120.00517.42
8.2.180.0150.00517.30
8.2.170.0150.00618.47
8.2.160.0190.00320.47
8.2.150.0150.00121.82
8.2.140.0140.00919.24
8.2.130.0160.00419.37
8.2.120.0200.00218.64
8.2.110.0160.00318.66
8.2.100.0180.00518.63
8.2.90.0150.00418.54
8.2.80.0130.00818.71
8.2.70.0200.00418.50
8.2.60.0230.00418.49
8.2.50.0160.00718.49
8.2.40.0220.00318.50
8.2.30.0240.00218.50
8.2.20.0180.00418.44
8.2.10.0180.00718.98
8.2.00.0130.00718.48
8.1.330.0090.01022.21
8.1.320.0110.00916.31
8.1.310.0150.00418.62
8.1.300.0040.00418.67
8.1.290.0040.00430.84
8.1.280.0150.00821.95
8.1.270.0170.00320.21
8.1.260.0160.00820.11
8.1.250.0120.00820.10
8.1.240.0120.00918.33
8.1.230.0100.00418.35
8.1.220.0120.00218.56
8.1.210.0160.00618.30
8.1.200.0120.00518.42
8.1.190.0130.00518.42
8.1.180.0150.00418.33
8.1.170.0160.00518.35
8.1.160.0160.00418.37
8.1.150.0190.00218.37
8.1.140.0220.00418.39
8.1.130.0190.00518.48
8.1.120.0150.00918.39
8.1.110.0170.00518.37
8.1.100.0160.00318.41
8.1.90.0130.00818.51
8.1.80.0160.00418.32
8.1.70.0160.00618.41
8.1.60.0180.01018.42
8.1.50.0200.00618.37
8.1.40.0180.00318.40
8.1.30.0160.00118.47
8.1.20.0060.00918.41
8.1.10.0090.00618.47
8.1.00.0100.00518.35

preferences:
43.23 ms | 403 KiB | 5 Q