3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<container><foo/><foo/></container>"; $sxe = simplexml_load_string($xml); var_dump($sxe->xpath("count(//foo)")); var_dump(count($sxe->xpath("//foo")));

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.140.0120.00917.72
8.4.130.0160.00518.12
8.4.120.0040.00422.84
8.4.110.0100.01022.88
8.4.100.0140.00719.02
8.4.90.0120.00919.23
8.4.80.0140.00518.95
8.4.70.0140.00818.23
8.4.60.0090.00718.06
8.4.50.0130.00719.90
8.4.40.0130.00618.00
8.4.30.0090.01119.13
8.4.20.0120.00320.11
8.4.10.0090.00019.80
8.3.270.0110.00917.11
8.3.260.0050.00517.21
8.3.250.0100.00919.33
8.3.240.0090.00917.28
8.3.230.0050.00317.21
8.3.220.0080.01119.38
8.3.210.0070.01218.86
8.3.200.0090.00617.15
8.3.190.0100.00916.82
8.3.180.0080.01119.21
8.3.170.0090.00917.37
8.3.160.0090.00918.58
8.3.150.0040.01121.02
8.3.140.0100.00616.72
8.3.130.0000.01016.96
8.3.120.0090.00920.90
8.3.110.0040.00417.09
8.3.100.0070.01316.97
8.3.90.0150.00026.77
8.3.80.0000.00917.97
8.3.70.0110.01118.56
8.3.60.0070.00718.56
8.3.50.0130.00817.10
8.3.40.0030.01322.42
8.3.30.0100.00719.38
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.290.0110.00820.61
8.2.280.0080.01018.51
8.2.270.0090.00917.63
8.2.260.0000.00918.91
8.2.250.0040.00417.10
8.2.240.0090.00617.64
8.2.230.0030.00720.94
8.2.220.0060.00324.06
8.2.210.0120.00326.77
8.2.200.0040.00416.88
8.2.190.0000.01517.13
8.2.180.0170.00717.00
8.2.170.0130.00719.34
8.2.160.0030.01022.96
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00421.44
8.2.110.0030.00619.64
8.2.100.0260.01118.44
8.2.90.0270.00718.44
8.2.80.0280.00018.44
8.2.70.0280.00318.44
8.2.60.0260.00318.44
8.2.50.0290.00318.44
8.2.40.0290.00018.44
8.2.30.0280.00018.44
8.2.20.0290.00018.44
8.2.10.0250.00318.44
8.2.00.0240.00418.44
8.1.330.0100.00822.32
8.1.320.0130.00616.45
8.1.310.0070.01118.62
8.1.300.0120.00618.68
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00019.90
8.1.230.0250.00318.44
8.1.220.0240.00318.44
8.1.210.0220.00718.44
8.1.200.0250.00318.44
8.1.190.0210.00618.44
8.1.180.0210.00518.44
8.1.170.0210.00718.44
8.1.160.0240.00318.44
8.1.150.0270.00018.44
8.1.140.0310.00418.44
8.1.130.0190.00818.44
8.1.120.0200.00718.44
8.1.110.0240.00318.44
8.1.100.0200.00718.44
8.1.90.0260.00018.44
8.1.80.0270.00018.44
8.1.70.0170.01018.44
8.1.60.0210.00618.44
8.1.50.0230.00318.44
8.1.40.0260.00018.44
8.1.30.0210.00418.44
8.1.20.0200.01018.44
8.1.10.0250.00418.44
8.1.00.0150.01118.44
8.0.300.0240.00418.44
8.0.290.0180.00918.44
8.0.280.0230.00518.44
8.0.270.0210.00818.44
8.0.260.0220.00718.44
8.0.250.0140.01418.44
8.0.240.0200.00918.44
8.0.230.0260.00418.44
8.0.220.0240.00418.44
8.0.210.0270.00018.44
8.0.200.0270.00018.44
8.0.190.0290.00018.44
8.0.180.0220.00618.44
8.0.170.0260.00018.44
8.0.160.0190.00918.44
8.0.150.0210.00818.44
8.0.140.0260.00018.44
8.0.130.0230.00718.44
8.0.120.0260.00018.44
8.0.110.0240.00318.44
8.0.100.0250.00218.44
8.0.90.0200.00718.44
8.0.80.0160.01118.44
8.0.70.0270.00018.44
8.0.60.0220.00618.44
8.0.50.0220.00518.44
8.0.30.0230.00418.44
8.0.20.0210.00618.44
8.0.10.0300.00018.44

preferences:
30.04 ms | 403 KiB | 5 Q