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( './/child') as $child) { echo $child->nodes()['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.0040.01117.00
8.3.50.0080.00722.29
8.3.40.0110.00419.25
8.3.30.0070.00719.45
8.3.20.0040.00420.60
8.3.10.0000.00723.98
8.3.00.0060.00321.06
8.2.180.0110.01119.13
8.2.170.0180.00422.96
8.2.160.0030.01322.52
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0150.00326.16
8.2.120.0040.00422.63
8.2.110.0090.00022.73
8.2.100.0040.00818.28
8.2.90.0040.00419.55
8.2.80.0060.00318.30
8.2.70.0030.00618.13
8.2.60.0060.00618.18
8.2.50.0030.00618.07
8.2.40.0040.00718.61
8.2.30.0040.00418.41
8.2.20.0040.00418.13
8.2.10.0040.00419.94
8.2.00.0000.00818.25
8.1.280.0070.01425.92
8.1.270.0040.00424.23
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00924.29
8.1.230.0080.00419.40
8.1.220.0050.00318.02
8.1.210.0030.00618.77
8.1.200.0030.00617.73
8.1.190.0040.00417.91
8.1.180.0040.00418.10
8.1.170.0000.00918.88
8.1.160.0070.00022.36
8.1.150.0000.00719.02
8.1.140.0000.00717.91
8.1.130.0070.00018.18
8.1.120.0040.00417.92
8.1.110.0000.00717.78
8.1.100.0040.00417.68
8.1.90.0080.00317.88
8.1.80.0070.00017.95
8.1.70.0000.00717.83
8.1.60.0060.00318.07
8.1.50.0050.00317.98
8.1.40.0040.00417.73
8.1.30.0060.00318.00
8.1.20.0050.00217.96
8.1.10.0000.00718.02
8.1.00.0040.00417.98
8.0.300.0070.00018.77
8.0.290.0060.00317.55
8.0.280.0000.00818.75
8.0.270.0090.00017.60
8.0.260.0040.00417.24
8.0.250.0000.00617.48
8.0.240.0000.00817.46
8.0.230.0040.00417.34
8.0.220.0030.00317.38
8.0.210.0030.00617.39
8.0.200.0000.00617.46
8.0.190.0070.00317.25
8.0.180.0040.00417.44
8.0.170.0040.00417.20
8.0.160.0040.00417.32
8.0.150.0070.00017.36
8.0.140.0000.00717.41
8.0.130.0030.00313.86
8.0.120.0000.00817.32
8.0.110.0040.00417.26
8.0.100.0040.00417.28
8.0.90.0000.00817.44
8.0.80.0100.01317.26
8.0.70.0050.00317.20
8.0.60.0040.00417.27
8.0.50.0000.00817.09
8.0.30.0090.00917.50
8.0.20.0080.01117.43
8.0.10.0040.00417.46
8.0.00.0120.00917.27
7.4.330.0000.00515.38
7.4.320.0000.00616.92
7.4.300.0030.00316.97
7.4.290.0030.00316.88
7.4.280.0000.00716.89
7.4.270.0000.00816.79
7.4.260.0000.00817.05
7.4.250.0000.00716.92
7.4.240.0030.00316.95
7.4.230.0070.00016.95
7.4.220.0160.00917.02
7.4.210.0110.00616.88
7.4.200.0030.00316.68
7.4.190.0000.00717.09
7.4.160.0100.01316.74
7.4.150.0150.00917.40
7.4.140.0100.00917.86
7.4.130.0150.00316.99
7.4.120.0110.00617.05
7.4.110.0140.00316.88
7.4.100.0120.00916.88
7.4.90.0170.01216.97
7.4.80.0080.00819.39
7.4.70.0140.00016.77
7.4.60.0090.00917.15
7.4.50.0000.00816.87
7.4.40.0130.00322.77
7.4.30.0110.00516.83
7.4.10.0060.01015.04
7.4.00.0060.00815.23
7.3.330.0000.00713.45
7.3.320.0030.00313.41
7.3.310.0000.00716.74
7.3.300.0070.00016.54
7.3.290.0040.01116.62
7.3.280.0070.01116.65
7.3.270.0070.01117.40
7.3.260.0080.00816.93
7.3.250.0110.00616.88
7.3.240.0070.01016.74
7.3.230.0070.01116.70
7.3.210.0140.00616.73
7.3.200.0090.00919.39
7.3.190.0130.00316.77
7.3.180.0070.01016.73
7.3.170.0100.00616.67
7.3.160.0150.00016.94
7.3.130.0090.00914.91
7.3.120.0080.00815.13
7.3.110.0070.01114.95
7.3.100.0060.00614.95
7.3.90.0090.00814.96
7.3.80.0110.00515.08
7.3.70.0100.00315.03
7.3.60.0050.00814.99
7.3.50.0080.00714.93
7.3.40.0080.00714.89
7.3.30.0030.01015.00
7.3.20.0070.00716.87
7.3.10.0090.00616.58
7.3.00.0100.00916.69
7.2.330.0090.00816.92
7.2.320.0060.01217.08
7.2.310.0080.00816.95
7.2.300.0030.01416.90
7.2.290.0130.00316.75
7.2.260.0150.00315.33
7.2.250.0110.00815.41
7.2.240.0050.01015.26
7.2.230.0020.01115.20
7.2.220.0080.00715.12
7.2.210.0030.00915.37
7.2.200.0050.00715.15
7.2.190.0080.00315.17
7.2.180.0030.00915.31
7.2.170.0070.00715.11
7.2.160.0030.00615.15
7.2.150.0040.01116.98
7.2.140.0120.00317.14
7.2.130.0080.00817.15
7.2.120.0090.00916.89
7.2.110.0120.00616.82
7.2.100.0060.00916.80
7.2.90.0100.00516.99
7.2.80.0050.01117.02
7.2.70.0090.00916.93
7.2.60.0080.00816.88
7.2.50.0110.00516.89
7.2.40.0110.00916.92
7.2.30.0150.00616.87
7.2.20.0070.01016.91
7.2.10.0110.00916.97
7.2.00.0060.01017.81
7.1.330.0060.00815.88
7.1.320.0040.00815.96
7.1.310.0070.00716.13
7.1.300.0050.00915.76
7.1.290.0090.00415.87
7.1.280.0070.00815.96
7.1.270.0070.00615.84
7.1.260.0000.01215.86
7.1.250.0090.00915.75
7.1.240.0030.01315.86
7.1.230.0130.00015.82
7.1.220.0100.00715.91
7.1.210.0090.00916.02
7.1.200.0050.00915.88
7.1.190.0100.00315.82
7.1.180.0030.01015.82
7.1.170.0060.00916.05
7.1.160.0030.00616.10
7.1.150.0080.00415.97
7.1.140.0000.01716.00
7.1.130.0070.01016.00
7.1.120.0070.00715.88
7.1.110.0030.00715.91
7.1.100.0060.00917.12
7.1.90.0100.00315.91
7.1.80.0030.00616.08
7.1.70.0070.00216.55
7.1.60.0030.01016.69
7.1.50.0050.00816.31
7.1.40.0020.01016.37
7.1.30.0070.00716.29
7.1.20.0100.00316.33
7.1.10.0030.00816.31
7.1.00.0080.00216.34
7.0.330.0030.00515.67
7.0.320.0030.00715.37
7.0.310.0090.00315.52
7.0.300.0030.00615.63
7.0.290.0030.01015.50
7.0.280.0000.00815.50
7.0.270.0040.00715.56
7.0.260.0070.00715.66
7.0.250.0080.00415.64
7.0.240.0040.01115.77
7.0.230.0060.00915.63
7.0.220.0040.00415.60
7.0.210.0000.01415.50
7.0.200.0060.00316.17
7.0.190.0040.00616.32
7.0.180.0000.01216.10
7.0.170.0050.00616.03
7.0.160.0030.00515.98
7.0.150.0030.00816.07
7.0.140.0010.00716.01
7.0.130.0050.00516.13
7.0.120.0070.00516.10
7.0.110.0020.00916.08
7.0.100.0050.00516.15
7.0.90.0040.00616.17
7.0.80.0060.00516.06
7.0.70.0050.00816.19
7.0.60.0020.00716.01
7.0.50.0070.00616.13
7.0.40.0090.00514.82
7.0.30.0040.00714.66
7.0.20.0040.00714.72
7.0.10.0060.00614.76
7.0.00.0050.00714.76
5.6.400.0070.00714.29
5.6.390.0030.01014.63
5.6.380.0130.00014.68
5.6.370.0100.00314.38
5.6.360.0090.00614.57
5.6.350.0080.00414.38
5.6.340.0070.00714.83
5.6.330.0150.00014.50
5.6.320.0060.00914.40
5.6.310.0110.00414.51
5.6.300.0080.02517.74
5.6.290.0060.02317.61
5.6.280.0050.02717.70
5.6.270.0040.02617.70
5.6.260.0040.02517.84
5.6.250.0050.02317.79
5.6.240.0010.02717.71
5.6.230.0050.02317.65
5.6.220.0030.03617.73
5.6.210.0070.02317.53
5.6.200.0060.02417.63
5.6.190.0050.02617.73
5.6.180.0050.02317.63
5.6.170.0070.04117.80
5.6.160.0090.02517.67
5.6.150.0050.03017.82
5.6.140.0070.02417.73
5.6.130.0020.02517.83
5.6.120.0090.02717.75
5.6.110.0030.02517.71
5.6.100.0050.02717.73
5.6.90.0080.02317.67
5.6.80.0080.01917.57
5.6.70.0050.02517.32
5.6.60.0040.02317.28
5.6.50.0020.02917.31
5.6.40.0070.04717.28
5.6.30.0030.03617.25
5.6.20.0090.03417.35
5.6.10.0050.02617.38
5.6.00.0020.02917.29
5.5.380.0060.02316.01
5.5.370.0030.02416.00
5.5.360.0070.02415.92
5.5.350.0060.02315.88
5.5.340.0050.02416.30
5.5.330.0060.02516.24
5.5.320.0050.04516.27
5.5.310.0080.02116.16
5.5.300.0070.02016.09
5.5.290.0030.02516.18
5.5.280.0090.02116.17
5.5.270.0080.02016.21
5.5.260.0000.02616.14
5.5.250.0020.02316.13
5.5.240.0030.03115.80
5.5.230.0050.02215.84
5.5.220.0030.03515.80
5.5.210.0050.02415.92
5.5.200.0040.02515.78
5.5.190.0040.02515.68
5.5.180.0030.02515.61
5.5.170.0070.01014.19
5.5.160.0100.02615.69
5.5.150.0050.04415.99
5.5.140.0040.02215.96
5.5.130.0050.03315.82
5.5.120.0070.04315.89
5.5.110.0050.02816.02
5.5.100.0030.02415.80
5.5.90.0030.02415.86
5.5.80.0050.02215.72
5.5.70.0030.02215.81
5.5.60.0080.01915.69
5.5.50.0020.04715.88
5.5.40.0070.02015.80
5.5.30.0040.02615.70
5.5.20.0100.03915.74
5.5.10.0020.02315.87
5.5.00.0030.02315.90
5.4.450.0030.02616.15
5.4.440.0060.02716.28
5.4.430.0050.02416.25
5.4.420.0030.02416.33
5.4.410.0040.02316.13
5.4.400.0040.02916.13
5.4.390.0040.03316.11
5.4.380.0060.02916.14
5.4.370.0050.04116.10
5.4.360.0050.02016.04
5.4.350.0030.02116.09
5.4.340.0020.02516.09
5.4.330.0040.01112.99
5.4.320.0080.04016.08
5.4.310.0030.02316.16
5.4.300.0050.04215.98
5.4.290.0100.02816.15
5.4.280.0030.04916.07
5.4.270.0040.03216.15
5.4.260.0020.02816.11
5.4.250.0050.02116.16
5.4.240.0030.02516.15
5.4.230.0030.02516.15
5.4.220.0030.02216.10
5.4.210.0030.03616.07
5.4.200.0030.02916.10
5.4.190.0040.03816.09
5.4.180.0040.02216.09
5.4.170.0080.01916.08
5.4.160.0020.02416.01
5.4.150.0050.04016.09
5.4.140.0010.03914.83
5.4.130.0020.02414.95
5.4.120.0030.02214.93
5.4.110.0050.02914.88
5.4.100.0060.03914.91
5.4.90.0040.02714.77
5.4.80.0020.02214.95
5.4.70.0060.01914.95
5.4.60.0020.02414.79
5.4.50.0020.04214.92
5.4.40.0060.02114.90
5.4.30.0020.02414.76
5.4.20.0020.02714.88
5.4.10.0090.01914.93
5.4.00.0030.04214.57
5.3.290.0030.03014.45
5.3.280.0030.02314.45
5.3.270.0070.02014.45
5.3.260.0070.04014.45
5.3.250.0040.02214.45
5.3.240.0020.02614.45
5.3.230.0030.02414.45
5.3.220.0020.02814.45
5.3.210.0030.04314.45
5.3.200.0070.03814.45
5.3.190.0020.02514.45
5.3.180.0020.02814.45
5.3.170.0030.02114.45
5.3.160.0030.03114.45
5.3.150.0090.02414.45
5.3.140.0090.02214.45
5.3.130.0050.04014.45
5.3.120.0040.02414.45
5.3.110.0010.02414.45
5.3.100.0050.02814.45
5.3.90.0030.02414.45
5.3.80.0050.03114.45
5.3.70.0000.02514.45
5.3.60.0020.04114.45
5.3.50.0020.04114.45
5.3.40.0020.02714.45
5.3.30.0080.01714.45
5.3.20.0020.02014.45
5.3.10.0030.01914.45
5.3.00.0050.01814.45
5.2.170.0030.06415.90
5.2.160.0100.04115.90
5.2.150.0030.04115.90
5.2.140.0060.02915.90
5.2.130.0000.03015.90
5.2.120.0000.03115.90
5.2.110.0000.03315.90
5.2.100.0060.02515.90
5.2.90.0040.03615.90
5.2.80.0000.04215.90
5.2.70.0040.04315.90
5.2.60.0030.03015.90
5.2.50.0030.02715.90
5.2.40.0000.03215.90
5.2.30.0000.03315.90
5.2.20.0030.02715.90
5.2.10.0070.02315.90
5.2.00.0070.05315.90
5.1.60.0030.02315.90
5.1.50.0030.02815.90
5.1.40.0030.03315.90
5.1.30.0130.02615.90
5.1.20.0000.02815.90
5.1.10.0070.04215.90
5.1.00.0030.05515.90
5.0.50.0030.01915.90
5.0.40.0030.01815.90
5.0.30.0030.05915.90
5.0.20.0000.02315.90
5.0.10.0030.04415.90
5.0.00.0000.05915.90
4.4.90.0000.01715.90
4.4.80.0000.01615.90
4.4.70.0030.01815.90
4.4.60.0030.02015.90
4.4.50.0000.01615.90
4.4.40.0000.02815.90
4.4.30.0030.01515.90
4.4.20.0030.02115.90
4.4.10.0070.01015.90
4.4.00.0030.03315.90
4.3.110.0000.01915.90
4.3.100.0000.02715.90
4.3.90.0030.01315.90
4.3.80.0030.04815.90
4.3.70.0000.03415.90
4.3.60.0040.03615.90
4.3.50.0030.03515.90
4.3.40.0000.05315.90
4.3.30.0000.02615.90
4.3.20.0000.01915.90
4.3.10.0030.01915.90
4.3.00.0000.01915.90

preferences:
43.26 ms | 401 KiB | 5 Q