3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1' /> <child name='Child2' /> <subparent> <child name='Child3' /> </subparent> </parent> <child name='Child4' /> </root>"; $xml = simplexml_load_string( $xml); $node= $xml->xpath( '/child[@name="Child2"]'); echo $node;

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.60.0120.00918.81
8.3.50.0080.01022.17
8.3.40.0070.00719.22
8.3.30.0090.00919.34
8.3.20.0070.00320.54
8.3.10.0080.00023.98
8.3.00.0090.00619.50
8.2.180.0110.00316.88
8.2.170.0070.00722.96
8.2.160.0100.00320.72
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0070.00020.45
8.2.110.0100.00022.64
8.2.100.0080.00418.00
8.2.90.0000.00819.47
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0040.00418.41
8.2.50.0030.00518.07
8.2.40.0060.00318.22
8.2.30.0040.00418.47
8.2.20.0030.00518.00
8.2.10.0070.00018.49
8.2.00.0000.00818.11
8.1.280.0040.01425.92
8.1.270.0030.00624.20
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00424.25
8.1.230.0070.00319.54
8.1.220.0060.00318.04
8.1.210.0000.00918.77
8.1.200.0060.00617.60
8.1.190.0050.00317.60
8.1.180.0030.00618.10
8.1.170.0000.00820.60
8.1.160.0070.00022.28
8.1.150.0050.00219.25
8.1.140.0030.00617.71
8.1.130.0000.00718.02
8.1.120.0040.00417.61
8.1.110.0030.00417.75
8.1.100.0030.00317.66
8.1.90.0000.00717.80
8.1.80.0050.00217.70
8.1.70.0000.00717.77
8.1.60.0090.00017.73
8.1.50.0080.00017.89
8.1.40.0040.00417.67
8.1.30.0040.00417.77
8.1.20.0040.00418.00
8.1.10.0000.00917.86
8.1.00.0050.00317.83
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0050.00318.79
8.0.270.0030.00517.57
8.0.260.0060.00017.63
8.0.250.0040.00417.38
8.0.240.0030.00317.41
8.0.230.0000.00717.31
8.0.220.0000.00717.35
8.0.210.0030.00317.10
8.0.200.0000.00717.18
8.0.190.0000.00817.13
8.0.180.0000.00817.29
8.0.170.0000.00817.36
8.0.160.0040.00417.28
8.0.150.0040.00417.23
8.0.140.0070.00017.08
8.0.130.0000.00613.59
8.0.120.0000.00817.26
8.0.110.0070.00017.07
8.0.100.0020.00517.12
8.0.90.0080.00017.13
8.0.80.0160.00017.27
8.0.70.0000.00717.03
8.0.60.0040.00417.10
8.0.50.0040.00417.21
8.0.30.0090.00917.43
8.0.20.0120.01217.40
8.0.10.0040.00417.32
8.0.00.0140.00717.00
7.4.330.0040.00415.02
7.4.320.0060.00016.74
7.4.300.0070.00016.83
7.4.290.0030.00516.71
7.4.280.0030.00516.91
7.4.270.0030.00316.81
7.4.260.0100.00016.72
7.4.250.0080.00016.92
7.4.240.0000.00716.68
7.4.230.0070.00016.61
7.4.220.0140.00416.83
7.4.210.0130.00716.98
7.4.200.0080.00016.69
7.4.160.0100.01016.66
7.4.150.0070.01317.40
7.4.140.0140.00817.86
7.4.130.0100.00816.86
7.4.120.0070.01016.85
7.4.110.0110.00616.62
7.4.100.0130.00316.89
7.4.90.0030.01616.83
7.4.80.0060.01019.39
7.4.70.0060.01416.78
7.4.60.0070.01016.77
7.4.50.0050.00316.72
7.4.40.0060.01116.90
7.4.30.0070.01116.88
7.4.00.0080.00915.12
7.3.330.0020.00213.23
7.3.320.0050.00013.36
7.3.310.0030.00316.48
7.3.300.0040.00416.46
7.3.290.0060.00916.54
7.3.280.0100.00416.62
7.3.270.0130.00617.40
7.3.260.0120.00916.56
7.3.250.0190.00216.66
7.3.240.0120.00816.83
7.3.230.0090.01216.90
7.3.210.0130.00316.64
7.3.200.0110.00719.39
7.3.190.0140.00716.68
7.3.180.0150.00616.80
7.3.170.0060.01016.98
7.3.160.0060.00916.74
7.3.120.0130.00514.85
7.3.110.0110.00714.88
7.3.100.0060.01114.82
7.3.90.0080.00514.81
7.3.80.0080.00615.00
7.3.70.0030.00714.79
7.3.60.0070.00614.84
7.3.50.0000.01314.86
7.3.40.0050.00814.88
7.3.30.0060.00614.92
7.3.20.0060.00516.63
7.3.10.0070.00716.81
7.3.00.0060.00716.74
7.2.330.0090.00916.87
7.2.320.0100.01116.66
7.2.310.0180.00016.86
7.2.300.0060.01216.82
7.2.290.0040.01516.80
7.2.250.0030.01415.14
7.2.240.0070.01115.17
7.2.230.0060.00815.08
7.2.220.0050.00915.09
7.2.210.0070.00715.12
7.2.200.0070.00815.00
7.2.190.0070.00614.96
7.2.180.0060.00915.10
7.2.170.0090.00415.10
7.2.60.0060.00617.01
7.2.50.0030.00917.20
7.2.00.0100.00319.35
7.1.330.0060.00816.04
7.1.320.0070.00616.04
7.1.310.0070.00715.74
7.1.300.0060.00815.90
7.1.290.0040.00915.86
7.1.280.0080.00615.90
7.1.270.0070.00715.84
7.1.260.0110.00316.01
7.1.200.0030.00915.85
7.1.100.0000.01118.05
7.1.70.0000.00717.46
7.1.60.0100.01419.32
7.1.50.0080.01617.20
7.1.00.0030.07722.63
7.0.200.0000.00716.70
7.0.140.0000.07722.30
7.0.60.0100.06720.16
7.0.50.0000.06317.95
7.0.40.0030.05720.26
7.0.30.0500.06020.20
7.0.20.0200.03720.40
7.0.10.0070.05720.45
7.0.00.0170.07720.30
5.6.280.0000.07321.24
5.6.210.0200.07320.65
5.6.200.0130.04018.37
5.6.190.0100.08720.73
5.6.180.0170.08320.58
5.6.170.0270.06020.77
5.6.160.0100.07320.58
5.6.150.0100.07718.39
5.6.140.0100.05318.26
5.6.130.0070.05018.36
5.6.120.0030.04321.30
5.6.110.0100.08321.27
5.6.100.0100.06721.23
5.6.90.0030.09021.24
5.6.80.0070.04020.46
5.6.70.4630.04020.54
5.5.350.0230.07720.69
5.5.340.0070.08018.12
5.5.330.0000.06020.64
5.5.320.0200.04720.57
5.5.310.0170.06320.54
5.5.300.0030.08018.18
5.5.290.0100.08018.13
5.5.280.0000.04320.98
5.5.270.0070.04720.79
5.5.260.0070.07020.98
5.5.250.0200.07020.72
5.5.240.0330.06320.32
5.4.450.0770.06319.69
5.4.440.0630.06719.73
5.4.430.0700.05019.63
5.4.420.0670.05319.72
5.4.410.0100.05319.62
5.4.400.0100.05019.10
5.4.390.0700.06019.42
5.4.380.0700.05319.10
5.4.370.0800.06019.28
5.4.360.0600.06019.45
5.4.350.0470.05719.46
5.4.340.0060.04612.22
5.4.320.0040.04112.71
5.4.310.0110.04612.70
5.4.300.0140.05412.71
5.4.290.0110.05812.71
5.4.280.0120.04312.59
5.4.270.0060.04712.60
5.4.260.0100.04212.60
5.4.250.0110.08212.61
5.4.240.0060.07312.60
5.4.230.0150.06612.59
5.4.220.0090.04912.59
5.4.210.0180.04912.60
5.4.200.0120.06512.59
5.4.190.0080.05912.59
5.4.180.0060.04012.59
5.4.170.0040.04112.61
5.4.160.0040.04212.59
5.4.150.0150.05812.59
5.4.140.0170.04812.27
5.4.130.0080.04412.27
5.4.120.0150.06712.22
5.4.110.0160.04112.21
5.4.100.0070.03612.21
5.4.90.0050.04012.22
5.4.80.0090.04212.22
5.4.70.0110.05412.21
5.4.60.0070.04012.21
5.4.50.0090.03512.21
5.4.40.0120.07312.20
5.4.30.0060.03812.20
5.4.20.0090.03912.20
5.4.10.0130.04612.20
5.4.00.0080.05311.69
5.3.290.0100.04412.97
5.3.280.0120.05512.90
5.3.270.0140.08912.91
5.3.260.0090.04212.91
5.3.250.0150.06212.91
5.3.240.0090.05012.90
5.3.230.0070.04012.89
5.3.220.0070.05012.86
5.3.210.0160.04412.86
5.3.200.0100.04412.86
5.3.190.0090.05112.86
5.3.180.0090.05712.86
5.3.170.0090.05412.86
5.3.160.0220.09412.86
5.3.150.0080.08712.86
5.3.140.0230.08612.86
5.3.130.0120.08112.84
5.3.120.0190.08312.85
5.3.110.0220.09512.84
5.3.100.0350.09112.33
5.3.90.0320.10212.32
5.3.80.0100.04812.31
5.3.70.0120.04812.31
5.3.60.0100.06912.29
5.3.50.0100.05212.24
5.3.40.0090.06112.24
5.3.30.0080.06412.20
5.3.20.0080.04711.98
5.3.10.0090.04011.95
5.3.00.0150.04211.94
5.2.170.0060.0359.44
5.2.160.0080.0399.44
5.2.150.0080.0399.44
5.2.140.0070.0449.44
5.2.130.0040.0319.39
5.2.120.0100.0279.40
5.2.110.0080.0379.41
5.2.100.0080.0409.39
5.2.90.0100.0389.39
5.2.80.0060.0439.38
5.2.70.0080.0459.38
5.2.60.0070.0529.34
5.2.50.0110.0349.31
5.2.40.0070.0399.29
5.2.30.0100.0399.26
5.2.20.0050.0419.25
5.2.10.0080.0349.17
5.2.00.0100.0369.04
5.1.60.0060.0318.32
5.1.50.0100.0288.32
5.1.40.0060.0348.30
5.1.30.0070.0358.65
5.1.20.0070.0348.66
5.1.10.0050.0358.39
5.1.00.0060.0358.39
5.0.50.0080.0246.87
5.0.40.0080.0256.73
5.0.30.0130.0346.55
5.0.20.0110.0356.52
5.0.10.0070.0306.49
5.0.00.0070.0566.49
4.4.90.0030.0224.78
4.4.80.0050.0194.76
4.4.70.0020.0404.75
4.4.60.0030.0204.75
4.4.50.0060.0174.77
4.4.40.0040.0314.70
4.4.30.0040.0194.76
4.4.20.0050.0194.84
4.4.10.0030.0224.85
4.4.00.0030.0324.76
4.3.110.0030.0224.67
4.3.100.0060.0194.66
4.3.90.0060.0184.63
4.3.80.0060.0294.58
4.3.70.0020.0244.63
4.3.60.0040.0244.63
4.3.50.0040.0234.63
4.3.40.0050.0334.54
4.3.30.0040.0233.28
4.3.20.0020.0223.26
4.3.10.0030.0243.22
4.3.00.0030.0206.81

preferences:
36.9 ms | 400 KiB | 5 Q