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 . "\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.0100.01018.93
8.3.50.0140.00522.11
8.3.40.0040.01119.09
8.3.30.0150.00319.04
8.3.20.0080.00018.81
8.3.10.0040.00421.48
8.3.00.0090.00022.15
8.2.180.0130.00717.13
8.2.170.0070.00722.96
8.2.160.0070.00720.77
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.35
8.2.110.0060.00320.76
8.2.100.0040.00818.16
8.2.90.0000.00719.61
8.2.80.0030.00618.41
8.2.70.0030.00617.88
8.2.60.0040.00418.30
8.2.50.0000.01018.07
8.2.40.0040.00418.53
8.2.30.0000.00721.57
8.2.20.0030.00618.08
8.2.10.0000.00818.23
8.2.00.0080.00018.12
8.1.280.0070.01025.92
8.1.270.0060.00323.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.91
8.1.230.0040.00721.28
8.1.220.0080.00018.77
8.1.210.0040.00419.27
8.1.200.0090.00017.48
8.1.190.0050.00317.91
8.1.180.0000.00818.10
8.1.170.0040.00418.95
8.1.160.0050.00219.22
8.1.150.0060.00318.96
8.1.140.0080.00017.80
8.1.130.0000.00718.21
8.1.120.0030.00717.91
8.1.110.0040.00417.79
8.1.100.0000.00817.89
8.1.90.0040.00417.70
8.1.80.0040.00417.67
8.1.70.0030.00317.80
8.1.60.0030.00617.98
8.1.50.0000.00817.93
8.1.40.0060.00317.73
8.1.30.0080.00018.12
8.1.20.0050.00318.04
8.1.10.0040.00417.98
8.1.00.0000.00717.93
8.0.300.0000.00820.23
8.0.290.0040.00417.41
8.0.280.0070.00018.91
8.0.270.0000.00717.58
8.0.260.0030.00317.13
8.0.250.0020.00517.38
8.0.240.0060.00317.39
8.0.230.0040.00417.43
8.0.220.0030.00317.32
8.0.210.0030.00317.11
8.0.200.0030.00317.28
8.0.190.0000.00717.34
8.0.180.0040.00417.34
8.0.170.0030.00317.38
8.0.160.0050.00317.42
8.0.150.0070.00017.04
8.0.140.0050.00217.29
8.0.130.0000.00613.68
8.0.120.0000.00917.04
8.0.110.0040.00417.20
8.0.100.0040.00417.31
8.0.90.0000.00817.25
8.0.80.0080.00817.34
8.0.70.0050.00317.18
8.0.60.0040.00417.16
8.0.50.0040.00417.23
8.0.30.0120.00617.27
8.0.20.0240.01817.44
8.0.10.0040.00417.37
8.0.00.0130.00517.17
7.4.330.0050.00015.11
7.4.320.0030.00317.08
7.4.300.0060.00016.93
7.4.290.0030.00316.90
7.4.280.0000.00716.87
7.4.270.0040.00416.93
7.4.260.0050.00013.67
7.4.250.0100.00016.86
7.4.240.0000.00716.95
7.4.230.0050.00316.86
7.4.220.0180.00916.94
7.4.210.0090.00617.00
7.4.200.0040.00417.00
7.4.190.0070.00016.86
7.4.160.0000.01616.88
7.4.150.0130.00317.40
7.4.140.0100.00717.86
7.4.130.0150.00316.92
7.4.120.0060.01116.91
7.4.110.0110.00616.80
7.4.100.0180.00617.00
7.4.90.0070.01116.80
7.4.80.0030.01319.39
7.4.70.0090.00616.82
7.4.60.0000.01617.00
7.4.50.0060.00316.78
7.4.40.0070.00722.52
7.4.30.0130.00316.77
7.4.00.0110.00415.19
7.3.330.0000.00513.47
7.3.320.0030.00313.51
7.3.310.0000.00716.43
7.3.300.0070.00016.55
7.3.290.0000.01516.53
7.3.280.0060.00916.69
7.3.270.0130.00717.40
7.3.260.0100.01318.24
7.3.250.0100.01016.71
7.3.240.0110.00616.82
7.3.230.0100.00716.88
7.3.210.0090.00916.86
7.3.200.0130.01219.39
7.3.190.0100.00716.87
7.3.180.0100.00616.63
7.3.170.0110.00416.63
7.3.160.0030.01316.54
7.3.120.0090.00615.19
7.3.00.0030.01016.89
7.2.330.0120.00617.11
7.2.320.0090.00917.08
7.2.310.0080.01116.95
7.2.300.0060.01417.15
7.2.290.0150.00316.89
7.2.130.0100.00317.21
7.2.120.0030.01317.07
7.2.110.0030.00616.82
7.2.100.0030.00616.98
7.2.90.0080.00816.71
7.2.80.0070.01016.82
7.2.70.0060.00316.84
7.2.60.0050.00916.91
7.2.50.0070.00316.75
7.2.40.0030.01116.75
7.2.30.0060.00616.89
7.2.20.0030.00716.77
7.2.10.0080.00416.94
7.2.00.0100.00818.20
7.1.250.0040.00816.04
7.1.240.0000.01116.02
7.1.230.0060.00316.01
7.1.220.0000.01415.79
7.1.210.0000.01115.63
7.1.200.0090.00315.97
7.1.190.0030.01015.81
7.1.180.0070.00415.84
7.1.170.0100.00015.60
7.1.160.0030.01115.81
7.1.150.0060.01115.90
7.1.140.0040.00815.69
7.1.130.0060.00616.02
7.1.120.0070.00715.75
7.1.110.0090.00316.05
7.1.100.0000.01216.97
7.1.90.0060.00615.91
7.1.80.0000.01515.81
7.1.70.0040.00716.37
7.1.60.0070.01016.64
7.1.50.0070.00616.52
7.1.40.0050.01416.27
7.1.30.0120.01016.50
7.1.20.0020.01016.38
7.1.10.0030.01016.41
7.1.00.0080.00216.46
7.0.330.0080.00315.45
7.0.320.0040.00415.22
7.0.310.0040.00715.32
7.0.300.0030.00915.36
7.0.290.0030.00615.41
7.0.280.0040.00715.50
7.0.270.0030.01315.52
7.0.260.0060.00615.66
7.0.250.0080.00415.56
7.0.240.0080.00315.47
7.0.230.0110.00315.55
7.0.220.0070.00715.71
7.0.210.0070.00715.61
7.0.200.0070.00516.35
7.0.190.0090.00416.30
7.0.180.0050.01016.25
7.0.170.0050.00716.38
7.0.160.0030.00516.45
7.0.150.0050.00716.39
7.0.140.0070.00316.34
7.0.130.0010.00816.32
7.0.120.0050.00616.42
7.0.110.0030.00816.30
7.0.100.0000.01016.26
7.0.90.0050.00616.35
7.0.80.0080.00316.34
7.0.70.0020.01016.32
7.0.60.0050.00616.32
7.0.50.0060.00616.32
7.0.40.0030.00815.29
7.0.30.0030.00515.30
7.0.20.0020.00915.28
7.0.10.0080.00215.29
7.0.00.0040.00615.30
5.6.380.0050.00514.16
5.6.370.0030.01014.03
5.6.360.0100.00314.42
5.6.350.0070.00314.41
5.6.340.0050.00314.24
5.6.330.0070.00714.80
5.6.320.0060.00614.37
5.6.310.0070.00714.41
5.6.300.0030.02917.76
5.6.290.0080.04017.67
5.6.280.0030.02617.84
5.6.270.0090.03617.73
5.6.260.0050.02717.75
5.6.250.0000.03217.68
5.6.240.0050.02817.79
5.6.230.0050.03317.74
5.6.220.0080.01817.77
5.6.210.0030.02617.75
5.6.200.0170.02317.78
5.6.190.0020.02817.68
5.6.180.0050.02217.74
5.6.170.0050.02317.67
5.6.160.0050.02617.65
5.6.150.0050.02817.93
5.6.140.0190.02417.63
5.6.130.0100.01717.87
5.6.120.0030.02917.73
5.6.110.0040.03017.71
5.6.100.0060.04717.72
5.6.90.0070.04517.75
5.6.80.0050.02617.42
5.6.70.0040.02417.27
5.6.60.0020.04417.41
5.6.50.0080.03117.38
5.6.40.0020.02817.23
5.6.30.0040.02717.52
5.6.20.0030.02917.37
5.6.10.0140.02117.49
5.6.00.0050.02217.35
5.5.380.0030.02614.48
5.5.370.0060.02514.43
5.5.360.0030.02514.31
5.5.350.0020.02314.53
5.5.340.0030.02314.57
5.5.330.0030.02314.75
5.5.320.0020.02714.75
5.5.310.0030.02414.84
5.5.300.0080.01814.62
5.5.290.0050.02314.51
5.5.280.0030.03314.70
5.5.270.0030.02614.66
5.5.260.0000.03014.74
5.5.250.0060.03214.58
5.5.240.0030.02514.42
5.5.230.0030.02414.37
5.5.220.0070.02714.26
5.5.210.0020.02614.43
5.5.200.0030.02214.20
5.5.190.0070.01814.22
5.5.180.0040.02214.38
5.5.170.0000.00811.21
5.5.160.0040.02314.44
5.5.150.0020.02514.29
5.5.140.0030.02414.46
5.5.130.0030.02614.15
5.5.120.0050.02114.49
5.5.110.0030.02114.30
5.5.100.0060.02314.34
5.5.90.0050.02414.32
5.5.80.0050.03314.23
5.5.70.0050.02214.34
5.5.60.0030.02114.23
5.5.50.0050.01814.22
5.5.40.0050.02014.32
5.5.30.0060.02014.23
5.5.20.0020.02314.19
5.5.10.0040.02014.33
5.5.00.0000.02614.29
5.4.450.0080.02415.34
5.4.440.0070.03715.41
5.4.430.0070.02915.34
5.4.420.0030.03815.36
5.4.410.0060.01915.33
5.4.400.0020.02215.04
5.4.390.0060.01815.16
5.4.380.0050.02915.21
5.4.370.0060.01715.11
5.4.360.0060.01915.16
5.4.350.0030.02215.17
5.4.340.0050.01915.11
5.4.330.0100.00011.20
5.4.320.0050.02015.30
5.4.310.0000.02615.09
5.4.300.0030.02215.21
5.4.290.0050.02915.29
5.4.280.0040.02615.19
5.4.270.0070.02015.18
5.4.260.0060.01915.15
5.4.250.0020.03915.08
5.4.240.0050.03115.11
5.4.230.0060.01915.27
5.4.220.0020.02515.10
5.4.210.0000.02815.16
5.4.200.0130.02315.16
5.4.190.0070.01815.16
5.4.180.0030.02215.10
5.4.170.0030.02115.14
5.4.160.0030.02115.10
5.4.150.0010.02815.01
5.4.140.0050.02114.05
5.4.130.0030.02114.02
5.4.120.0050.02214.09
5.4.110.0060.02114.04
5.4.100.0100.02814.06
5.4.90.0040.02314.13
5.4.80.0060.02414.04
5.4.70.0060.01714.13
5.4.60.0070.01914.13
5.4.50.0040.02514.08
5.4.40.0070.01814.20
5.4.30.0030.02614.04
5.4.20.0060.02014.13
5.4.10.0030.02914.05
5.4.00.0060.02414.02
5.3.290.0040.02014.02
5.3.280.0000.02514.02
5.3.270.0010.03314.02
5.3.260.0030.02114.02
5.3.250.0060.01814.02
5.3.240.0030.01914.02
5.3.230.0050.03014.02
5.3.220.0030.02214.02
5.3.210.0000.02914.02
5.3.200.0090.01914.02
5.3.190.0030.02414.02
5.3.180.0060.01914.02
5.3.170.0030.02214.02
5.3.160.0070.02014.02
5.3.150.0050.02014.02
5.3.140.0030.02014.02
5.3.130.0050.01814.02
5.3.120.0040.02314.02
5.3.110.0050.04014.02
5.3.100.0030.01914.02
5.3.90.0050.02114.02
5.3.80.0020.02214.02
5.3.70.0030.02214.02
5.3.60.0030.01914.02
5.3.50.0050.02714.02
5.3.40.0020.02614.02
5.3.30.0050.01814.02
5.3.20.0060.02114.02
5.3.10.0030.02114.02
5.3.00.0020.02014.02
5.2.170.0100.01614.02
5.2.160.0020.01914.02
5.2.150.0030.01914.02
5.2.140.0020.01714.02
5.2.130.0130.02214.02
5.2.120.0040.01314.02
5.2.110.0100.01514.02
5.2.100.0060.01414.02
5.2.90.0050.01614.02
5.2.80.0030.01814.02
5.2.70.0030.02214.02
5.2.60.0050.02114.02
5.2.50.0020.02014.02
5.2.40.0110.01314.02
5.2.30.0050.01714.02
5.2.20.0070.01414.02
5.2.10.0000.02114.02
5.2.00.0050.01614.02
5.1.60.0030.01314.02
5.1.50.0020.01414.02
5.1.40.0020.01514.02
5.1.30.0110.01414.02
5.1.20.0050.01314.02
5.1.10.0020.01514.02
5.1.00.0030.01414.02
5.0.50.0050.01114.02
5.0.40.0020.01114.02
5.0.30.0020.01814.02
5.0.20.0040.01014.02
5.0.10.0070.01114.02
5.0.00.0030.01614.02
4.4.90.0020.01114.02
4.4.80.0000.01214.02
4.4.70.0000.01114.02
4.4.60.0040.01214.02
4.4.50.0010.00914.02
4.4.40.0060.01614.02
4.4.30.0020.00914.02
4.4.20.0010.00914.02
4.4.10.0000.01314.02
4.4.00.0030.01414.02
4.3.110.0000.01114.02
4.3.100.0030.00814.02
4.3.90.0020.00814.02
4.3.80.0000.02214.02
4.3.70.0030.00714.02
4.3.60.0020.01014.02
4.3.50.0040.00714.02
4.3.40.0030.01414.02
4.3.30.0030.01514.02
4.3.20.0030.01214.02
4.3.10.0020.01314.02
4.3.00.0030.01314.02

preferences:
43.23 ms | 401 KiB | 5 Q