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[@name="Child2"]')->children() 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.40.0120.00319.04
8.3.30.0090.00919.65
8.3.20.0030.00620.58
8.3.10.0000.00823.86
8.3.00.0090.00919.51
8.2.170.0060.00922.96
8.2.160.0030.01020.95
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00822.46
8.2.110.0060.00322.69
8.2.100.0060.00618.00
8.2.90.0000.00819.55
8.2.80.0040.00418.13
8.2.70.0090.00017.71
8.2.60.0000.00818.15
8.2.50.0000.00818.07
8.2.40.0060.00318.50
8.2.30.0040.00418.57
8.2.20.0040.00418.23
8.2.10.0040.00418.57
8.2.00.0060.00318.00
8.1.270.0040.00424.18
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00624.17
8.1.230.0040.00719.25
8.1.220.0000.00818.04
8.1.210.0000.00818.77
8.1.200.0060.00817.47
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0030.00520.48
8.1.160.0000.00722.24
8.1.150.0000.00719.17
8.1.140.0080.00017.73
8.1.130.0000.00718.22
8.1.120.0050.00217.64
8.1.110.0080.00017.56
8.1.100.0000.00817.57
8.1.90.0040.00417.63
8.1.80.0070.00017.77
8.1.70.0030.00317.55
8.1.60.0040.00717.96
8.1.50.0000.00817.89
8.1.40.0000.00817.95
8.1.30.0060.00317.90
8.1.20.0040.00418.09
8.1.10.0030.00617.93
8.1.00.0000.00817.71
8.0.300.0040.00418.77
8.0.290.0070.00017.00
8.0.280.0000.00718.64
8.0.270.0030.00417.57
8.0.260.0070.00017.64
8.0.250.0050.00217.16
8.0.240.0030.00517.18
8.0.230.0000.00717.38
8.0.220.0070.00017.30
8.0.210.0030.00317.24
8.0.200.0000.00717.15
8.0.190.0040.00417.41
8.0.180.0000.00717.29
8.0.170.0000.00817.33
8.0.160.0000.00717.30
8.0.150.0040.00417.14
8.0.140.0050.00317.08
8.0.130.0050.00013.57
8.0.120.0060.00317.12
8.0.110.0000.00817.10
8.0.100.0040.00417.27
8.0.90.0040.00417.20
8.0.80.0030.01417.13
8.0.70.0000.00817.11
8.0.60.0030.00517.37
8.0.50.0040.00417.18
8.0.30.0090.01017.40
8.0.20.0130.01017.59
8.0.10.0080.00017.21
8.0.00.0150.00516.99
7.4.330.0030.00315.02
7.4.320.0000.00616.79
7.4.300.0030.00316.84
7.4.290.0000.00716.89
7.4.280.0040.00416.69
7.4.270.0030.00317.00
7.4.260.0050.00216.77
7.4.250.0000.00717.00
7.4.240.0000.00716.85
7.4.230.0030.00316.88
7.4.220.0060.01216.91
7.4.210.0130.00616.97
7.4.200.0000.00716.85
7.4.160.0070.00916.73
7.4.150.0110.00717.40
7.4.140.0080.00917.86
7.4.130.0050.01416.94
7.4.120.0050.01216.90
7.4.110.0070.01116.78
7.4.100.0030.01416.74
7.4.90.0110.00716.79
7.4.80.0100.00719.39
7.4.70.0130.00616.94
7.4.60.0120.00616.81
7.4.50.0050.00316.64
7.4.40.0120.00916.70
7.4.30.0100.01316.67
7.4.00.0050.01215.14
7.3.330.0000.00513.25
7.3.320.0000.00513.37
7.3.310.0000.00716.71
7.3.300.0030.00316.56
7.3.290.0050.01116.60
7.3.280.0070.00916.61
7.3.270.0190.00317.40
7.3.260.0080.00816.67
7.3.250.0050.01116.70
7.3.240.0130.00416.66
7.3.230.0060.01016.78
7.3.210.0160.00616.85
7.3.200.0100.01019.39
7.3.190.0120.00916.73
7.3.180.0110.00716.44
7.3.170.0040.01216.70
7.3.160.0070.01116.63
7.3.120.0090.00914.92
7.3.110.0080.00815.20
7.3.100.0040.01115.12
7.3.90.0040.00814.84
7.3.80.0030.01115.00
7.3.70.0080.00615.09
7.3.60.0050.00714.93
7.3.50.0070.00514.85
7.3.40.0020.00914.94
7.3.30.0080.00714.94
7.3.20.0080.00816.60
7.3.10.0060.00916.71
7.3.00.0050.00716.61
7.2.330.0080.00816.81
7.2.320.0090.00616.93
7.2.310.0160.00316.77
7.2.300.0080.00816.90
7.2.290.0030.01516.93
7.2.250.0000.01915.14
7.2.240.0070.01015.19
7.2.230.0060.00614.85
7.2.220.0060.00915.08
7.2.210.0030.01115.14
7.2.200.0110.00515.11
7.2.190.0040.01114.87
7.2.180.0060.00915.04
7.2.170.0070.00915.06
7.2.160.0060.00915.23
7.2.150.0030.01316.83
7.2.140.0070.01016.98
7.2.130.0060.00916.74
7.2.120.0040.00816.85
7.2.110.0000.01116.86
7.2.100.0040.00816.85
7.2.90.0100.00316.94
7.2.80.0100.00516.67
7.2.70.0080.00616.91
7.2.60.0080.00716.84
7.2.50.0100.00716.62
7.2.40.0030.01216.84
7.2.30.0070.00916.87
7.2.20.0050.00916.78
7.2.10.0050.00816.87
7.2.00.0050.00817.91
7.1.330.0030.01315.94
7.1.320.0030.01015.71
7.1.310.0060.00715.97
7.1.300.0040.01115.81
7.1.290.0050.00815.78
7.1.280.0100.00616.00
7.1.270.0020.01115.91
7.1.260.0060.00715.89
7.1.250.0050.00715.72
7.1.240.0030.00715.98
7.1.230.0100.00315.86
7.1.220.0030.00715.57
7.1.210.0030.00715.92
7.1.200.0050.00615.85
7.1.190.0070.00715.78
7.1.180.0000.00915.82
7.1.170.0100.00315.62
7.1.160.0030.00715.64
7.1.150.0000.00715.61
7.1.140.0030.01015.91
7.1.130.0100.00715.66
7.1.120.0000.01415.77
7.1.110.0030.00715.59
7.1.100.0070.00516.95
7.1.90.0090.00315.66
7.1.80.0000.00715.47
7.1.70.0080.00616.64
7.1.60.0060.01117.53
7.1.50.0120.00716.37
7.1.40.0100.00715.89
7.1.30.0030.00715.58
7.1.20.0060.00615.48
7.1.10.0090.00315.47
7.1.00.0080.04019.12
7.0.330.0110.00015.52
7.0.320.0060.00315.41
7.0.310.0110.00415.09
7.0.300.0130.00015.39
7.0.290.0100.00015.37
7.0.280.0070.00715.14
7.0.270.0030.00715.58
7.0.260.0060.00315.25
7.0.250.0130.00315.13
7.0.240.0080.00515.37
7.0.230.0060.00315.38
7.0.220.0090.00615.45
7.0.210.0040.00815.49
7.0.200.0070.00416.19
7.0.190.0030.01215.31
7.0.180.0070.00415.54
7.0.170.0080.00415.70
7.0.160.0030.00615.58
7.0.150.0060.00615.27
7.0.140.0060.03818.82
7.0.130.0120.00015.36
7.0.120.0090.00315.68
7.0.110.0060.00615.63
7.0.100.0090.00615.54
7.0.90.0030.00315.57
7.0.80.0090.00915.34
7.0.70.0070.00515.41
7.0.60.0030.04117.72
7.0.50.0030.05016.87
7.0.40.0120.04316.91
7.0.30.0170.02716.81
7.0.20.0130.01816.82
7.0.10.0020.02716.93
7.0.00.0050.02516.86
5.6.380.0040.00714.34
5.6.370.0030.00613.96
5.6.360.0030.00614.45
5.6.350.0030.01014.18
5.6.340.0100.00314.28
5.6.330.0140.00014.05
5.6.320.0070.00314.19
5.6.310.0030.01014.40
5.6.300.0040.00813.97
5.6.290.0130.00314.46
5.6.280.0030.04017.80
5.6.270.0110.00414.25
5.6.260.0110.00414.01
5.6.250.0030.01014.22
5.6.240.0030.00714.15
5.6.230.0100.00714.64
5.6.220.0000.01414.06
5.6.210.0070.04317.50
5.6.200.0070.03516.23
5.6.190.0000.03317.25
5.6.180.0120.04417.18
5.6.170.0270.04017.54
5.6.160.0080.04517.48
5.6.150.0070.02516.23
5.6.140.0050.04416.40
5.6.130.0030.03216.39
5.6.120.0160.04017.63
5.6.110.0020.05417.59
5.6.100.0090.04517.65
5.6.90.0120.04017.54
5.6.80.0080.04317.46
5.6.70.2280.02317.30
5.6.60.0180.00614.44
5.6.50.0110.00714.41
5.6.40.0100.01314.18
5.6.30.0070.00714.04
5.6.20.0120.01214.41
5.6.10.0070.01014.52
5.6.00.0030.00713.98
5.5.380.0060.00310.88
5.5.370.0100.00311.02
5.5.360.0000.00910.98
5.5.350.0150.02915.70
5.5.340.0030.03414.47
5.5.330.0020.04415.48
5.5.320.0100.02515.76
5.5.310.0110.02515.79
5.5.300.0060.03714.62
5.5.290.0070.03214.69
5.5.280.0080.04216.07
5.5.270.0070.04216.04
5.5.260.0070.04416.04
5.5.250.0090.03815.92
5.5.240.0150.03615.58
5.5.230.0060.00611.05
5.5.220.0080.00310.83
5.5.210.0040.00810.80
5.5.200.0070.00410.93
5.5.190.0030.00310.93
5.5.180.0050.00510.92
5.5.170.0080.00310.85
5.5.160.0040.00810.83
5.5.150.0000.01210.65
5.5.140.0120.00010.87
5.5.130.0080.00810.98
5.5.120.0100.00310.88
5.5.110.0000.00810.99
5.5.100.0120.00411.19
5.5.90.0000.01011.13
5.5.80.0090.00611.36
5.5.70.0030.00611.04
5.5.60.0100.00010.92
5.5.50.0040.00411.18
5.5.40.0060.00611.12
5.5.30.0050.00511.13
5.5.20.0030.00611.14
5.5.10.0050.00310.90
5.5.00.0070.00411.00
5.4.450.0380.03515.19
5.4.440.0410.03215.13
5.4.430.0390.03215.11
5.4.420.0330.02915.11
5.4.410.0410.03415.12
5.4.400.0450.02714.95
5.4.390.0210.02915.29
5.4.380.0390.02715.14
5.4.370.0370.03014.90
5.4.360.0120.02914.83
5.4.350.0510.03215.10
5.4.340.0080.02011.51
5.4.330.0120.00610.65
5.4.320.0070.02411.66
5.4.310.0060.02411.57
5.4.300.0100.02011.71
5.4.290.0090.02411.92
5.4.280.0100.02111.73
5.4.270.0110.01911.54
5.4.260.0120.02211.67
5.4.250.0120.02111.68
5.4.240.0070.02311.74
5.4.230.0050.02511.63
5.4.220.0040.03011.67
5.4.210.0040.02311.63
5.4.200.0020.02511.63
5.4.190.0080.01811.66
5.4.180.0060.01911.68
5.4.170.0090.02111.77
5.4.160.0090.01911.55
5.4.150.0030.02311.61
5.4.140.0020.02611.58
5.4.130.0020.02311.55
5.4.120.0050.02211.46
5.4.110.0060.01811.42
5.4.100.0040.02311.46
5.4.90.0060.02011.43
5.4.80.0070.02111.52
5.4.70.0050.02411.47
5.4.60.0050.02011.59
5.4.50.0070.01611.66
5.4.40.0060.01911.46
5.4.30.0040.02311.61
5.4.20.0040.02211.57
5.4.10.0070.01611.64
5.4.00.0050.02011.32
5.3.290.0050.02511.83
5.3.280.0120.02111.59
5.3.270.0030.02311.77
5.3.260.0050.02111.72
5.3.250.0080.01911.75
5.3.240.0050.02311.72
5.3.230.0020.02311.70
5.3.220.0050.02011.76
5.3.210.0030.02411.70
5.3.200.0050.02211.71
5.3.190.0060.02011.71
5.3.180.0040.02311.70
5.3.170.0020.02311.70
5.3.160.0020.02211.81
5.3.150.0020.02211.71
5.3.140.0060.01811.71
5.3.130.0080.02511.69
5.3.120.0040.02911.77
5.3.110.0050.02111.83
5.3.100.0040.02311.48
5.3.90.0050.02111.48
5.3.80.0040.02311.29
5.3.70.0040.02411.37
5.3.60.0060.02111.40
5.3.50.0040.02111.33
5.3.40.0050.02211.40
5.3.30.0060.02011.38
5.3.20.0040.02211.18
5.3.10.0040.02411.14
5.3.00.0060.02411.11
5.2.170.0040.0219.61
5.2.160.0050.0189.50
5.2.150.0050.0169.53
5.2.140.0070.0179.41
5.2.130.0020.0179.41
5.2.120.0010.0239.49
5.2.110.0020.0189.46
5.2.100.0060.0189.50
5.2.90.0020.0209.47
5.2.80.0080.0189.45
5.2.70.0020.0189.48
5.2.60.0060.0159.37
5.2.50.0050.0179.39
5.2.40.0040.0189.50
5.2.30.0040.0179.36
5.2.20.0100.0159.39
5.2.10.0050.0149.23
5.2.00.0070.0159.16
5.1.60.0070.0128.49
5.1.50.0050.0138.44
5.1.40.0020.0168.51
5.1.30.0030.0148.74
5.1.20.0050.0148.76
5.1.10.0020.0168.55
5.1.00.0040.0168.50
5.0.50.0030.0137.33
5.0.40.0020.0157.21
5.0.30.0020.0187.12
5.0.20.0020.0117.10
5.0.10.0030.0107.09
5.0.00.0020.0207.09
4.4.90.0020.0096.23
4.4.80.0030.0096.22
4.4.70.0030.0106.22
4.4.60.0020.0126.22
4.4.50.0010.0146.22
4.4.40.0030.0186.20
4.4.30.0030.0116.22
4.4.20.0020.0116.26
4.4.10.0040.0076.27
4.4.00.0020.0156.22
4.3.110.0030.0096.18
4.3.100.0030.0096.18
4.3.90.0020.0086.16
4.3.80.0020.0126.13
4.3.70.0050.0076.16
4.3.60.0030.0086.15
4.3.50.0060.0106.15
4.3.40.0030.0206.11
4.3.30.0030.0105.48
4.3.20.0000.0135.47
4.3.10.0030.0075.46
4.3.00.0070.0137.34

preferences:
40.96 ms | 400 KiB | 5 Q