3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root><first/><second/><third/></root>"; $xml = simplexml_load_string($xml); foreach ($xml->children() as $tag => $el) { var_dump($tag, $el); var_dump($xml->$tag == $el); }

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.130.0030.00518.52
8.3.120.0080.00019.05
8.3.110.0090.00320.94
8.3.100.0110.00824.06
8.3.90.0160.00326.77
8.3.80.0090.00318.56
8.3.70.0150.00318.68
8.3.60.0200.00316.63
8.3.50.0120.00318.33
8.3.40.0100.01022.27
8.3.30.0110.00319.01
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.250.0100.00017.16
8.2.240.0040.01219.04
8.2.230.0060.01322.58
8.2.220.0170.00337.54
8.2.210.0050.00326.77
8.2.200.0090.00016.75
8.2.190.0090.00918.29
8.2.180.0040.01116.63
8.2.170.0130.00719.02
8.2.160.0090.00622.96
8.2.150.0110.00425.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0030.00617.93
8.2.110.0100.00019.36
8.2.100.0140.00018.44
8.2.90.0220.00918.44
8.2.80.0270.00318.44
8.2.70.0220.00918.44
8.2.60.0230.00818.44
8.2.50.0230.00818.44
8.2.40.0200.00319.02
8.2.30.0190.01018.44
8.2.20.0270.00318.44
8.2.10.0280.00018.44
8.2.00.0240.00418.44
8.1.300.0080.00018.45
8.1.290.0060.00330.84
8.1.280.0110.00725.92
8.1.270.0000.00824.66
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00019.63
8.1.230.0150.00318.84
8.1.220.0270.00018.44
8.1.210.0160.01218.44
8.1.200.0230.00618.44
8.1.190.0240.00818.44
8.1.180.0400.00418.44
8.1.170.0170.01018.44
8.1.160.0260.00318.44
8.1.150.0270.00018.44
8.1.140.0230.00318.44
8.1.130.0220.00418.44
8.1.120.0180.00718.44
8.1.110.0200.00718.44
8.1.100.0240.00318.44
8.1.90.0230.00418.44
8.1.80.0210.00718.44
8.1.70.0240.00318.44
8.1.60.0240.00318.44
8.1.50.0240.00418.44
8.1.40.0240.00418.44
8.1.30.0240.00318.44
8.1.20.0150.01018.44
8.1.10.0300.00018.44
8.1.00.0190.00818.44
8.0.300.0150.01218.44
8.0.290.0280.00018.44
8.0.280.0290.00018.44
8.0.270.0190.00918.44
8.0.260.0190.00818.44
8.0.250.0240.00418.44
8.0.240.0220.00418.44
8.0.230.0200.00818.44
8.0.220.0280.00018.44
8.0.210.0210.00618.44
8.0.200.0220.00418.44
8.0.190.0240.00318.44
8.0.180.0270.00318.44
8.0.170.0210.01118.44
8.0.160.0290.01118.44
8.0.150.0220.00618.44
8.0.140.0210.00818.44
8.0.130.0250.00318.44
8.0.120.0210.00818.44
8.0.110.0230.00618.44
8.0.100.0240.00418.44
8.0.90.0180.01018.44
8.0.80.0250.00318.44
8.0.70.0250.00318.44
8.0.60.0180.00718.44
8.0.50.0190.00618.44
8.0.30.0250.00218.44
8.0.20.0280.00018.44
8.0.10.0290.00018.44

preferences:
44.46 ms | 403 KiB | 5 Q