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[0];

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.0140.00718.93
8.3.50.0120.00522.17
8.3.40.0040.01118.89
8.3.30.0060.01219.60
8.3.20.0060.00320.66
8.3.10.0000.00723.98
8.3.00.0040.00419.63
8.2.180.0120.00617.00
8.2.170.0110.00422.96
8.2.160.0060.00820.57
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.46
8.2.110.0030.00722.62
8.2.100.0000.01118.00
8.2.90.0060.00319.48
8.2.80.0040.00418.13
8.2.70.0040.00418.00
8.2.60.0040.00418.18
8.2.50.0000.00918.13
8.2.40.0030.00618.72
8.2.30.0050.00318.30
8.2.20.0030.00618.12
8.2.10.0000.00818.40
8.2.00.0040.00418.03
8.1.280.0110.00625.92
8.1.270.0030.00624.29
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.17
8.1.230.0070.00419.42
8.1.220.0090.00018.14
8.1.210.0000.00818.77
8.1.200.0030.00917.73
8.1.190.0080.00017.47
8.1.180.0030.00618.10
8.1.170.0080.00020.62
8.1.160.0040.00422.33
8.1.150.0050.00319.00
8.1.140.0040.00417.77
8.1.130.0080.00018.09
8.1.120.0000.00717.60
8.1.110.0000.00717.59
8.1.100.0040.00417.77
8.1.90.0040.00317.83
8.1.80.0050.00217.57
8.1.70.0020.00517.77
8.1.60.0030.00717.80
8.1.50.0050.00317.64
8.1.40.0000.00717.68
8.1.30.0040.00518.00
8.1.20.0050.00317.77
8.1.10.0000.00818.02
8.1.00.0030.00517.87
8.0.300.0000.00718.77
8.0.290.0070.00017.13
8.0.280.0000.00718.82
8.0.270.0000.00717.69
8.0.260.0030.00317.53
8.0.250.0000.00717.42
8.0.240.0030.00317.32
8.0.230.0030.00317.16
8.0.220.0040.00417.32
8.0.210.0050.00317.10
8.0.200.0000.00717.11
8.0.190.0040.00417.19
8.0.180.0040.00417.32
8.0.170.0040.00417.14
8.0.160.0030.00517.31
8.0.150.0000.00717.25
8.0.140.0000.00817.29
8.0.130.0000.00813.62
8.0.120.0000.00917.28
8.0.110.0070.00017.03
8.0.100.0000.00717.19
8.0.90.0000.00817.15
8.0.80.0090.00517.20
8.0.70.0050.00317.12
8.0.60.0040.00417.14
8.0.50.0000.00717.21
8.0.30.0150.00917.49
8.0.20.0130.00717.40
8.0.10.0070.00017.16
8.0.00.0170.00217.25
7.4.330.0030.00315.02
7.4.320.0030.00316.74
7.4.300.0000.00616.73
7.4.290.0000.00716.85
7.4.280.0050.00216.86
7.4.270.0070.00016.92
7.4.260.0080.00016.72
7.4.250.0000.00716.91
7.4.240.0020.00516.82
7.4.230.0030.00316.74
7.4.220.0120.00616.89
7.4.210.0060.00916.75
7.4.200.0000.00716.80
7.4.160.0130.00616.72
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0110.00716.85
7.4.120.0100.00716.82
7.4.110.0100.00716.84
7.4.100.0160.00016.77
7.4.90.0030.01417.07
7.4.80.0060.01219.39
7.4.70.0110.00716.89
7.4.60.0130.00316.81
7.4.50.0060.00016.81
7.4.40.0070.01116.92
7.4.30.0090.01316.77
7.4.00.0080.01015.07
7.3.330.0000.00513.22
7.3.320.0000.00513.51
7.3.310.0070.00016.77
7.3.300.0030.00316.52
7.3.290.0070.00716.64
7.3.280.0080.00816.65
7.3.270.0100.00717.40
7.3.260.0100.00716.63
7.3.250.0110.00916.80
7.3.240.0200.00316.57
7.3.230.0140.00316.75
7.3.210.0070.01016.70
7.3.200.0080.00819.39
7.3.190.0090.00916.73
7.3.180.0090.00616.79
7.3.170.0060.01516.77
7.3.160.0030.01316.73
7.3.120.0040.01515.03
7.3.110.0130.00315.03
7.3.100.0040.01115.14
7.3.90.0030.00615.05
7.3.80.0000.01114.90
7.3.70.0060.00314.96
7.3.60.0060.00914.96
7.3.50.0000.01114.88
7.3.40.0030.00714.96
7.3.30.0060.00914.83
7.3.20.0060.00916.64
7.3.10.0040.00816.68
7.3.00.0000.01616.75
7.2.330.0070.01017.06
7.2.320.0070.01516.88
7.2.310.0170.00317.09
7.2.300.0080.00817.01
7.2.290.0150.00317.00
7.2.250.0100.00315.43
7.2.240.0100.01015.26
7.2.230.0090.00915.32
7.2.220.0030.00914.89
7.2.210.0040.00815.09
7.2.200.0060.00915.25
7.2.190.0030.01015.11
7.2.180.0100.00315.38
7.2.170.0060.00315.04
7.2.60.0040.01116.50
7.2.00.0070.01019.35
7.1.330.0030.01315.96
7.1.320.0100.00615.94
7.1.310.0070.00715.85
7.1.300.0070.01016.09
7.1.290.0060.00916.07
7.1.280.0100.00016.07
7.1.270.0090.00315.90
7.1.260.0040.00815.75
7.1.200.0070.00716.00
7.1.100.0060.00318.20
7.1.70.0000.00817.33
7.1.60.0120.01219.32
7.1.50.0030.02117.10
7.1.00.0070.07322.54
7.0.200.0040.00416.89
7.0.140.0030.07022.18
7.0.60.0170.06720.17
7.0.50.0070.05018.06
7.0.40.0000.05020.55
7.0.30.0570.07020.35
7.0.20.0100.04720.39
7.0.10.0070.04320.22
7.0.00.0070.06020.22
5.6.280.0000.07721.23
5.6.210.0030.08320.80
5.6.200.0130.07718.39
5.6.190.0070.05320.54
5.6.180.0200.09020.48
5.6.170.0470.06020.56
5.6.160.0070.08320.71
5.6.150.0030.07318.41
5.6.140.0030.06318.36
5.6.130.0030.07018.36
5.6.120.0230.07021.28
5.6.110.0170.06321.27
5.6.100.0170.07721.24
5.6.90.0070.04721.24
5.6.80.0030.06020.64
5.6.70.0130.07320.68
5.5.350.0300.07320.60
5.5.340.0000.07718.21
5.5.330.0100.06020.34
5.5.320.0200.04020.51
5.5.310.0130.05320.44
5.5.300.0100.07018.11
5.5.290.0200.04018.21
5.5.280.0100.06320.95
5.5.270.0070.05020.91
5.5.260.0130.05321.04
5.5.250.0100.07020.79
5.5.240.0100.04720.47
5.4.450.0700.06019.54
5.4.440.0800.05719.57
5.4.430.0730.05319.59
5.4.420.0870.05019.75
5.4.410.0730.05019.24
5.4.400.0830.05319.46
5.4.390.0670.06319.11
5.4.380.0130.04719.06
5.4.370.0870.05019.40
5.4.360.0730.04319.40
5.4.350.0730.05319.45
5.4.340.0080.04612.22
5.4.320.0070.05312.71
5.4.310.0080.05312.70
5.4.300.0060.05112.71
5.4.290.0110.05712.70
5.4.280.0320.17012.61
5.4.270.0100.05812.60
5.4.260.0130.06212.60
5.4.250.0170.05012.60
5.4.240.0180.06512.61
5.4.230.0100.04912.60
5.4.220.0100.04712.59
5.4.210.0080.05312.59
5.4.200.0060.05112.60
5.4.190.0050.05112.59
5.4.180.0080.04812.59
5.4.170.0080.05212.61
5.4.160.0080.04512.60
5.4.150.0120.04112.59
5.4.140.0090.05012.27
5.4.130.0110.04412.26
5.4.120.0100.04612.22
5.4.110.0070.04612.22
5.4.100.0120.04212.22
5.4.90.0080.05012.22
5.4.80.0090.04912.22
5.4.70.0110.04412.21
5.4.60.0080.04812.21
5.4.50.0050.04412.21
5.4.40.0080.03812.20
5.4.30.0130.04312.20
5.4.20.0090.04912.20
5.4.10.0050.03812.19
5.4.00.0060.03611.69
5.3.290.0080.04412.98
5.3.280.0080.04012.90
5.3.270.0070.04012.91
5.3.260.0040.04212.91
5.3.250.0120.03412.91
5.3.240.0070.05512.91
5.3.230.0040.04312.90
5.3.220.0070.03612.87
5.3.210.0030.04312.87
5.3.200.0070.03712.86
5.3.190.0090.03712.87
5.3.180.0060.03812.86
5.3.170.0070.04012.86
5.3.160.0080.03512.87
5.3.150.0050.03912.87
5.3.140.0060.04612.86
5.3.130.0090.03812.85
5.3.120.0070.04212.85
5.3.110.0060.05212.85
5.3.100.0060.04812.34
5.3.90.0090.04712.32
5.3.80.0090.04912.32
5.3.70.0080.04612.31
5.3.60.0090.04712.30
5.3.50.0080.04612.25
5.3.40.0060.04312.25
5.3.30.0020.04612.21
5.3.20.0100.03611.99
5.3.10.0070.04411.95
5.3.00.0070.03911.94
5.2.170.0090.0289.45
5.2.160.0120.0229.45
5.2.150.0020.0339.44
5.2.140.0070.0289.44
5.2.130.0040.0359.40
5.2.120.0090.0259.40
5.2.110.0070.0279.41
5.2.100.0070.0279.39
5.2.90.0130.0319.40
5.2.80.0040.0369.39
5.2.70.0060.0309.39
5.2.60.0060.0319.35
5.2.50.0060.0319.32
5.2.40.0050.0389.30
5.2.30.0070.0399.27
5.2.20.0070.0379.25
5.2.10.0060.0379.17
5.2.00.0080.0389.04
5.1.60.0050.0358.32
5.1.50.0100.0208.32
5.1.40.0110.0298.30
5.1.30.0090.0318.65
5.1.20.0070.0338.66
5.1.10.0050.0308.39
5.1.00.0070.0348.39
5.0.50.0040.0286.87
5.0.40.0040.0286.73
5.0.30.0040.0426.54
5.0.20.0050.0256.52
5.0.10.0040.0296.49
5.0.00.0090.0346.48
4.4.90.0040.0174.77
4.4.80.0030.0194.76
4.4.70.0060.0184.76
4.4.60.0020.0234.75
4.4.50.0040.0214.77
4.4.40.0040.0324.71
4.4.30.0080.0284.76
4.4.20.0020.0234.85
4.4.10.0060.0194.85
4.4.00.0040.0274.76
4.3.110.0020.0234.67
4.3.100.0030.0154.67
4.3.90.0030.0214.64
4.3.80.0030.0274.58
4.3.70.0020.0164.63
4.3.60.0030.0164.63
4.3.50.0010.0174.62
4.3.40.0040.0224.54
4.3.30.0020.0163.28
4.3.20.0020.0223.26
4.3.10.0030.0163.22
4.3.00.0070.0277.00

preferences:
42.69 ms | 401 KiB | 5 Q