3v4l.org

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

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.0070.01118.58
8.3.50.0130.00922.07
8.3.40.0110.00719.25
8.3.30.0220.00019.29
8.3.20.0000.00820.59
8.3.10.0080.00023.78
8.3.00.0040.00419.63
8.2.180.0080.00816.50
8.2.170.0130.00622.96
8.2.160.0140.00020.60
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.58
8.2.110.0070.00321.47
8.2.100.0060.00618.00
8.2.90.0030.00519.55
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0080.00018.41
8.2.50.0030.00618.07
8.2.40.0040.00418.34
8.2.30.0070.00018.46
8.2.20.0050.00318.23
8.2.10.0050.00218.56
8.2.00.0000.00917.86
8.1.280.0170.00325.92
8.1.270.0060.00322.57
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0110.00019.43
8.1.220.0040.00418.01
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0080.00017.48
8.1.180.0030.00518.10
8.1.170.0000.00820.75
8.1.160.0050.00222.12
8.1.150.0050.00219.18
8.1.140.0040.00417.66
8.1.130.0000.00718.20
8.1.120.0000.00717.61
8.1.110.0040.00417.77
8.1.100.0050.00217.75
8.1.90.0000.00717.80
8.1.80.0030.00317.82
8.1.70.0030.00317.77
8.1.60.0100.00017.94
8.1.50.0040.00417.91
8.1.40.0070.00017.79
8.1.30.0060.00318.02
8.1.20.0040.00417.95
8.1.10.0040.00417.68
8.1.00.0030.00617.86
8.0.300.0070.00018.77
8.0.290.0000.00817.25
8.0.280.0000.00718.77
8.0.270.0040.00417.59
8.0.260.0020.00517.61
8.0.250.0040.00417.43
8.0.240.0060.00017.25
8.0.230.0040.00417.13
8.0.220.0040.00417.14
8.0.210.0040.00417.08
8.0.200.0030.00317.28
8.0.190.0000.00717.38
8.0.180.0070.00017.33
8.0.170.0050.00217.37
8.0.160.0040.00417.34
8.0.150.0040.00417.00
8.0.140.0000.00817.04
8.0.130.0000.00513.52
8.0.120.0030.00517.03
8.0.110.0000.00717.27
8.0.100.0040.00417.01
8.0.90.0000.00817.10
8.0.80.0060.00917.24
8.0.70.0050.00317.22
8.0.60.0030.00517.21
8.0.50.0050.00217.19
8.0.30.0050.01417.53
8.0.20.0120.00817.48
8.0.10.0040.00417.18
8.0.00.0080.01117.07
7.4.330.0000.00615.02
7.4.320.0030.00316.83
7.4.300.0000.00616.73
7.4.290.0000.00716.83
7.4.280.0000.00816.94
7.4.270.0070.00016.91
7.4.260.0030.00316.80
7.4.250.0000.00816.79
7.4.240.0000.00716.86
7.4.230.0040.00417.01
7.4.220.0150.00316.84
7.4.210.0000.01516.81
7.4.200.0000.00716.69
7.4.160.0110.00916.70
7.4.150.0130.00717.40
7.4.140.0120.00917.86
7.4.130.0140.00716.79
7.4.120.0130.00716.82
7.4.110.0150.00416.94
7.4.100.0070.01016.93
7.4.90.0060.01216.69
7.4.80.0110.01119.39
7.4.70.0150.00416.81
7.4.60.0120.00316.68
7.4.50.0000.00816.61
7.4.40.0170.00716.69
7.4.30.0030.01416.82
7.4.00.0070.01015.13
7.3.330.0060.00313.47
7.3.320.0050.00013.19
7.3.310.0040.00416.64
7.3.300.0000.00716.57
7.3.290.0070.00916.60
7.3.280.0100.00516.52
7.3.270.0150.00517.40
7.3.260.0090.00916.71
7.3.250.0110.00616.56
7.3.240.0160.00016.69
7.3.230.0030.01316.53
7.3.210.0100.00616.52
7.3.200.0100.00619.39
7.3.190.0070.01016.64
7.3.180.0060.01516.60
7.3.170.0060.01316.81
7.3.160.0130.00716.59
7.2.330.0170.00016.72
7.2.320.0150.00616.74
7.2.310.0120.01216.99
7.2.300.0060.01016.89
7.2.290.0200.00316.97
7.2.00.0000.01119.30
7.1.100.0070.00418.23
7.1.70.0030.00617.22
7.1.60.0200.00319.32
7.1.50.0230.01634.82
7.1.00.0030.07722.68
7.0.200.0040.00717.07
7.0.140.0030.07322.13
7.0.60.0100.08320.24
7.0.50.0030.08717.87
7.0.40.0100.07720.21
7.0.30.0300.03720.21
7.0.20.0230.04020.32
7.0.10.0100.07720.27
7.0.00.0070.06320.39
5.6.280.0070.07321.10
5.6.210.0100.07720.99
5.6.200.0100.08018.37
5.6.190.0070.04720.54
5.6.180.0170.08320.48
5.6.170.0200.04020.63
5.6.160.0100.07020.66
5.6.150.0100.05018.39
5.6.140.0130.07718.36
5.6.130.0130.04318.41
5.6.120.0070.06321.30
5.6.110.0030.09021.27
5.6.100.0070.05321.19
5.6.90.0070.09021.19
5.6.80.0100.08320.64
5.5.350.0270.07720.55
5.5.340.0000.06318.13
5.5.330.0070.05320.29
5.5.320.0170.04320.43
5.5.310.0270.08020.50
5.5.300.0070.08018.07
5.5.290.0130.07718.12
5.5.280.0100.04320.79
5.5.270.0170.07720.91
5.5.260.0070.08320.90
5.5.250.0070.08320.76
5.5.240.2570.03320.38
5.4.450.0870.06319.86
5.4.440.0930.05319.69
5.4.430.0030.06319.77
5.4.420.0730.06719.84
5.4.410.0670.06019.60
5.4.400.0500.06019.46
5.4.390.0900.04719.23
5.4.380.0330.05319.37
5.4.370.0830.04719.27
5.4.360.0770.06319.21
5.4.350.1030.06719.23
5.4.340.0110.03412.23
5.4.320.0040.03812.72
5.4.310.0040.03912.71
5.4.300.0030.03912.71
5.4.290.0030.04112.72
5.4.280.0080.03312.61
5.4.270.0070.03512.61
5.4.260.0100.03412.61
5.4.250.0040.04112.61
5.4.240.0060.03612.62
5.4.230.0060.03712.61
5.4.220.0090.04012.61
5.4.210.0080.03412.61
5.4.200.0070.04212.61
5.4.190.0040.04212.60
5.4.180.0030.04112.60
5.4.170.0130.03512.62
5.4.160.0100.03312.61
5.4.150.0070.03512.61
5.4.140.0080.03412.29
5.4.130.0030.03712.28
5.4.120.0080.03312.24
5.4.110.0060.03612.23
5.4.100.0060.03512.23
5.4.90.0060.03912.23
5.4.80.0060.03612.23
5.4.70.0060.03412.23
5.4.60.0060.03412.23
5.4.50.0060.03612.22
5.4.40.0060.03612.21
5.4.30.0030.03812.21
5.4.20.0080.03512.21
5.4.10.0090.03112.21
5.4.00.0050.03711.70
5.3.290.0070.03912.98
5.3.280.0080.04112.91
5.3.270.0070.03912.93
5.3.260.0060.03912.92
5.3.250.0070.03612.93
5.3.240.0080.03512.92
5.3.230.0050.04012.92
5.3.220.0070.03712.89
5.3.210.0040.04012.88
5.3.200.0040.03912.88
5.3.190.0090.03412.88
5.3.180.0050.03812.88
5.3.170.0090.03712.88
5.3.160.0060.04912.88
5.3.150.0050.04212.88
5.3.140.0060.04412.88
5.3.130.0050.04012.86
5.3.120.0050.04412.87
5.3.110.0060.03812.87
5.3.100.0030.03912.36
5.3.90.0070.03812.34
5.3.80.0090.03412.33
5.3.70.0030.03912.33
5.3.60.0070.03412.31
5.3.50.0050.03812.26
5.3.40.0080.03512.25
5.3.30.0060.03412.22
5.3.20.0040.03712.00
5.3.10.0050.03511.96
5.3.00.0040.03811.95
5.2.170.0050.0379.45
5.2.160.0060.0309.45
5.2.150.0060.0329.45
5.2.140.0050.0309.45
5.2.130.0070.0269.41
5.2.120.0060.0279.41
5.2.110.0050.0299.42
5.2.100.0080.0289.41
5.2.90.0040.0309.41
5.2.80.0030.0319.41
5.2.70.0060.0369.40
5.2.60.0040.0319.36
5.2.50.0100.0259.33
5.2.40.0020.0329.30
5.2.30.0050.0299.28
5.2.20.0030.0339.26
5.2.10.0070.0259.18
5.2.00.0070.0289.05
5.1.60.0050.0238.33
5.1.50.0020.0278.32
5.1.40.0080.0218.31
5.1.30.0070.0258.66
5.1.20.0030.0288.68
5.1.10.0040.0258.40
5.1.00.0060.0238.40
5.0.50.0030.0226.88
5.0.40.0020.0216.74
5.0.30.0020.0336.56
5.0.20.0050.0186.53
5.0.10.0030.0206.50
5.0.00.0050.0306.50
4.4.90.0050.0144.78
4.4.80.0030.0154.76
4.4.70.0020.0164.75
4.4.60.0040.0154.75
4.4.50.0040.0144.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0030.0174.84
4.4.10.0040.0194.85
4.4.00.0030.0254.76
4.3.110.0040.0144.67
4.3.100.0030.0164.67
4.3.90.0060.0114.64
4.3.80.0040.0244.59
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0050.0224.53
4.3.30.0020.0163.28
4.3.20.0000.0183.25
4.3.10.0020.0163.22
4.3.00.0030.0237.00

preferences:
38.16 ms | 401 KiB | 5 Q