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); foreach( $xml->xpath( './/parent') as $child) { echo $child->attributes()['name'] . "\n"; }

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.01418.93
8.3.50.0130.00522.24
8.3.40.0090.00619.23
8.3.30.0120.00619.04
8.3.20.0050.00318.89
8.3.10.0040.00421.52
8.3.00.0040.00423.98
8.2.180.0070.00717.25
8.2.170.0140.00022.96
8.2.160.0030.01020.89
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.50
8.2.110.0060.00320.68
8.2.100.0090.00318.22
8.2.90.0000.00819.59
8.2.80.0040.00418.43
8.2.70.0000.00818.00
8.2.60.0030.00518.05
8.2.50.0050.00518.07
8.2.40.0070.00018.59
8.2.30.0050.00321.58
8.2.20.0040.00418.19
8.2.10.0000.00718.16
8.2.00.0030.00518.10
8.1.280.0040.01825.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0070.01024.30
8.1.230.0090.00321.35
8.1.220.0000.00818.77
8.1.210.0040.00419.34
8.1.200.0070.00317.73
8.1.190.0000.00817.76
8.1.180.0040.00418.10
8.1.170.0040.00418.92
8.1.160.0000.00719.27
8.1.150.0000.00718.98
8.1.140.0050.00317.81
8.1.130.0030.00318.20
8.1.120.0040.00417.90
8.1.110.0000.00817.73
8.1.100.0000.00717.81
8.1.90.0000.00717.89
8.1.80.0040.00417.78
8.1.70.0000.00717.82
8.1.60.0040.00417.79
8.1.50.0040.00417.73
8.1.40.0040.00417.75
8.1.30.0000.00818.11
8.1.20.0080.00018.07
8.1.10.0000.00817.81
8.1.00.0030.00617.90
8.0.300.0000.00720.26
8.0.290.0040.00417.55
8.0.280.0000.00718.74
8.0.270.0070.00017.72
8.0.260.0000.00618.87
8.0.250.0040.00417.38
8.0.240.0000.00717.39
8.0.230.0040.00417.38
8.0.220.0030.00317.11
8.0.210.0030.00317.33
8.0.200.0000.00617.32
8.0.190.0000.00717.44
8.0.180.0040.00417.22
8.0.170.0050.00317.39
8.0.160.0040.00417.13
8.0.150.0000.00717.20
8.0.140.0070.00317.25
8.0.130.0000.00513.60
8.0.120.0030.00517.22
8.0.110.0000.00717.17
8.0.100.0000.00717.33
8.0.90.0000.00717.27
8.0.80.0120.00317.35
8.0.70.0030.00717.21
8.0.60.0000.00917.28
8.0.50.0050.00317.33
8.0.30.0040.01517.55
8.0.20.0130.00617.53
8.0.10.0050.00317.36
8.0.00.0100.00817.24
7.4.330.0050.00015.14
7.4.320.0000.00617.09
7.4.300.0000.00616.88
7.4.290.0000.00716.97
7.4.280.0030.00316.75
7.4.270.0000.00716.96
7.4.260.0030.00313.68
7.4.250.0000.00817.01
7.4.240.0070.00017.00
7.4.230.0000.00816.90
7.4.220.0160.00816.86
7.4.210.0050.00816.93
7.4.200.0000.00817.10
7.4.190.0050.00216.86
7.4.160.0060.00916.82
7.4.150.0090.01517.40
7.4.140.0060.01117.86
7.4.130.0100.00816.87
7.4.120.0080.01116.81
7.4.110.0060.01217.06
7.4.100.0030.01717.04
7.4.90.0120.00616.84
7.4.80.0070.01419.39
7.4.70.0110.00516.85
7.4.60.0070.01416.95
7.4.50.0060.00316.68
7.4.40.0100.00522.52
7.4.30.0030.01216.89
7.4.00.0130.00315.06
7.3.330.0020.00213.40
7.3.320.0000.00513.30
7.3.310.0000.00716.52
7.3.300.0000.00616.67
7.3.290.0080.00816.62
7.3.280.0110.00816.68
7.3.270.0130.00717.40
7.3.260.0050.01718.24
7.3.250.0100.01016.84
7.3.240.0060.01116.65
7.3.230.0130.00316.64
7.3.210.0110.00616.81
7.3.200.0070.01119.39
7.3.190.0060.00916.73
7.3.180.0130.00316.64
7.3.170.0070.01016.84
7.3.160.0130.00316.57
7.3.120.0030.01015.02
7.3.00.0030.01016.81
7.2.330.0140.00417.01
7.2.320.0080.01516.97
7.2.310.0130.01017.02
7.2.300.0070.01017.12
7.2.290.0070.01416.93
7.2.130.0030.01317.20
7.2.120.0000.01417.17
7.2.110.0090.00616.89
7.2.100.0040.01517.05
7.2.90.0000.01317.00
7.2.80.0070.00717.14
7.2.70.0060.00317.19
7.2.60.0050.00817.08
7.2.50.0000.01317.07
7.2.40.0060.00617.17
7.2.30.0090.00617.25
7.2.20.0030.00917.09
7.2.10.0140.00317.14
7.2.00.0040.00718.37
7.1.250.0100.00715.89
7.1.240.0050.01015.74
7.1.230.0030.00715.82
7.1.220.0090.00615.79
7.1.210.0100.00716.19
7.1.200.0030.01015.98
7.1.190.0090.00616.09
7.1.180.0070.01016.05
7.1.170.0030.01015.96
7.1.160.0090.00615.64
7.1.150.0040.00715.82
7.1.140.0030.01015.84
7.1.130.0000.00915.80
7.1.120.0090.00316.15
7.1.110.0040.01016.97
7.1.100.0060.00617.40
7.1.90.0080.01017.17
7.1.80.0050.00917.24
7.1.70.0040.00716.89
7.1.60.0140.01023.40
7.1.50.0090.01222.60
7.1.40.0130.00925.25
7.1.30.0080.01625.21
7.1.20.0140.01025.34
7.1.10.0050.01016.38
7.1.00.0030.02118.49
7.0.330.0030.01015.61
7.0.320.0040.00915.34
7.0.310.0040.00715.35
7.0.300.0060.00615.53
7.0.290.0040.00715.18
7.0.280.0040.01115.54
7.0.270.0000.01515.36
7.0.260.0140.00315.33
7.0.250.0070.00716.64
7.0.240.0050.00816.63
7.0.230.0090.00916.60
7.0.220.0060.00616.58
7.0.210.0050.01116.09
7.0.200.0030.01016.56
7.0.190.0040.00916.13
7.0.180.0030.01315.98
7.0.170.0060.01016.00
7.0.160.0060.00715.92
7.0.150.0000.01316.09
7.0.140.0040.03018.05
7.0.130.0070.00915.99
7.0.120.0050.00716.20
7.0.110.0040.01316.14
7.0.100.0060.00716.00
7.0.90.0040.01015.94
7.0.80.0080.02017.33
7.0.70.0130.01617.40
7.0.60.0060.01917.29
7.0.50.0040.01817.56
7.0.40.0070.01816.83
7.0.30.0020.02516.86
7.0.20.0050.01916.83
7.0.10.0120.01516.82
7.0.00.0050.01816.79
5.6.380.0070.00314.74
5.6.370.0030.01014.55
5.6.360.0000.01014.42
5.6.350.0080.00414.48
5.6.340.0060.00314.72
5.6.330.0060.00814.32
5.6.320.0000.01314.62
5.6.310.0120.00314.47
5.6.300.0070.03117.56
5.6.290.0060.03317.73
5.6.280.0020.04918.88
5.6.270.0160.02417.74
5.6.260.0120.03317.84
5.6.250.0110.04017.81
5.6.240.0080.03117.75
5.6.230.0110.03618.76
5.6.220.0140.03418.82
5.6.210.0080.03418.93
5.6.200.0110.03718.82
5.6.190.0070.04118.82
5.6.180.0090.03918.86
5.6.170.0040.03718.90
5.6.160.0080.04118.82
5.6.150.0110.03718.79
5.6.140.0100.04918.96
5.6.130.0100.04018.92
5.6.120.0130.03119.00
5.6.110.0140.04118.86
5.6.100.0080.04018.94
5.6.90.0100.04018.95
5.6.80.0030.04618.48
5.6.70.0070.04718.50
5.6.60.0050.05618.44
5.6.50.0080.03718.52
5.6.40.0060.04918.57
5.6.30.0070.05018.54
5.6.20.0100.04218.56
5.6.10.0080.03418.41
5.6.00.0060.05018.40
5.5.380.0120.02714.48
5.5.370.0070.03616.42
5.5.360.0080.03816.48
5.5.350.0090.03316.38
5.5.340.0090.03516.77
5.5.330.0090.03616.73
5.5.320.0070.03816.71
5.5.310.0030.04016.80
5.5.300.0110.05416.84
5.5.290.0100.04616.77
5.5.280.0090.04016.75
5.5.270.0060.04116.68
5.5.260.0040.04016.88
5.5.250.0080.05116.70
5.5.240.0090.04316.30
5.5.230.0080.04816.46
5.5.220.0080.04516.34
5.5.210.0040.05416.37
5.5.200.0060.04916.37
5.5.190.0080.03616.39
5.5.180.0100.04616.27
5.5.170.0030.00311.32
5.5.160.0050.04216.24
5.5.150.0090.04216.22
5.5.140.0090.04416.26
5.5.130.0050.03916.25
5.5.120.0090.04116.28
5.5.110.0080.04716.37
5.5.100.0060.03616.23
5.5.90.0050.04616.21
5.5.80.0040.04416.22
5.5.70.0110.03316.27
5.5.60.0060.03416.15
5.5.50.0100.04216.15
5.5.40.0030.03516.20
5.5.30.0080.03516.22
5.5.20.0050.05016.34
5.5.10.0060.04716.20
5.5.00.0030.05716.23
5.4.450.0040.05116.69
5.4.440.0090.04716.74
5.4.430.0080.05116.58
5.4.420.0080.04816.61
5.4.410.0080.03716.65
5.4.400.0060.03516.52
5.4.390.0030.04516.46
5.4.380.0120.04316.42
5.4.370.0090.04916.44
5.4.360.0110.03316.44
5.4.350.0080.03116.44
5.4.340.0090.04816.46
5.4.330.0000.00710.88
5.4.320.0070.04316.42
5.4.310.0080.05316.40
5.4.300.0030.03716.48
5.4.290.0110.03916.46
5.4.280.0080.04416.33
5.4.270.0060.03616.38
5.4.260.0120.04516.47
5.4.250.0080.03916.36
5.4.240.0080.04516.58
5.4.230.0060.05316.44
5.4.220.0060.04116.46
5.4.210.0080.03316.41
5.4.200.0070.04716.47
5.4.190.0090.02916.50
5.4.180.0080.03416.41
5.4.170.0050.03416.30
5.4.160.0080.03716.44
5.4.150.0050.04916.53
5.4.140.0050.04014.77
5.4.130.0040.02914.77
5.4.120.0070.03814.80
5.4.110.0090.03614.67
5.4.100.0060.04414.69
5.4.90.0070.04114.83
5.4.80.0090.02914.62
5.4.70.0080.03414.63
5.4.60.0080.04014.70
5.4.50.0080.03514.63
5.4.40.0040.05214.85
5.4.30.0120.03014.77
5.4.20.0100.04114.63
5.4.10.0050.03714.63
5.4.00.0070.04514.30
5.3.290.0060.04913.17
5.3.280.0060.03613.13
5.3.270.0060.03713.14
5.3.260.0080.03913.12
5.3.250.0060.02813.11
5.3.240.0080.02713.20
5.3.230.0090.04313.20
5.3.220.0150.04413.14
5.3.210.0120.03513.12
5.3.200.0030.03613.08
5.3.190.0100.03413.18
5.3.180.0050.03913.10
5.3.170.0070.03713.13
5.3.160.0050.03813.24
5.3.150.0050.04013.11
5.3.140.0040.03613.19
5.3.130.0050.04913.12
5.3.120.0050.05013.08
5.3.110.0100.04213.07
5.3.100.0050.04212.77
5.3.90.0050.03712.78
5.3.80.0080.02912.72
5.3.70.0110.04812.77
5.3.60.0110.03812.76
5.3.50.0120.03512.72
5.3.40.0080.04612.66
5.3.30.0070.03812.70
5.3.20.0060.03912.51
5.3.10.0030.04312.55
5.3.00.0060.03312.43
5.2.170.0070.03911.73
5.2.160.0070.03011.70
5.2.150.0080.02511.74
5.2.140.0040.04311.60
5.2.130.0060.03911.68
5.2.120.0070.03111.68
5.2.110.0070.03511.69
5.2.100.0100.03011.70
5.2.90.0070.03911.62
5.2.80.0030.04111.62
5.2.70.0070.03111.69
5.2.60.0050.02711.62
5.2.50.0060.02811.67
5.2.40.0080.02611.68
5.2.30.0040.02711.62
5.2.20.0050.02711.65
5.2.10.0030.03411.59
5.2.00.0090.02811.54
5.1.60.0020.03311.29
5.1.50.0050.02011.32
5.1.40.0070.02911.28
5.1.30.0080.03011.48
5.1.20.0060.03111.43
5.1.10.0060.03111.40
5.1.00.0080.02811.30
5.0.50.0080.01410.75
5.0.40.0040.01510.82
5.0.30.0080.02710.71
5.0.20.0050.02310.77
5.0.10.0070.01910.74
5.0.00.0010.03910.76
4.4.90.0030.02310.22
4.4.80.0000.01810.22
4.4.70.0040.01210.22
4.4.60.0020.01810.22
4.4.50.0040.02110.22
4.4.40.0010.02710.22
4.4.30.0040.02010.22
4.4.20.0010.01310.22
4.4.10.0060.01010.22
4.4.00.0040.02010.22
4.3.110.0030.01610.22
4.3.100.0020.02410.22
4.3.90.0020.01410.22
4.3.80.0030.02210.22
4.3.70.0030.02110.22
4.3.60.0050.01210.22
4.3.50.0030.01410.22
4.3.40.0050.02210.22
4.3.30.0020.01210.22
4.3.20.0020.01410.22
4.3.10.0040.01910.22
4.3.00.0020.01410.22

preferences:
44.27 ms | 401 KiB | 5 Q