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.0080.00818.68
8.3.50.0100.00723.00
8.3.40.0180.00419.13
8.3.30.0140.00019.43
8.3.20.0000.00720.68
8.3.10.0080.00022.27
8.3.00.0050.00520.04
8.2.180.0120.00616.74
8.2.170.0040.01122.96
8.2.160.0060.00920.68
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0110.00321.46
8.2.110.0080.00319.55
8.2.100.0040.00818.09
8.2.90.0070.00420.07
8.2.80.0050.00317.97
8.2.70.0090.00017.88
8.2.60.0000.00818.30
8.2.50.0030.00718.07
8.2.40.0000.00718.40
8.2.30.0000.00818.53
8.2.20.0040.00418.15
8.2.10.0030.00518.54
8.2.00.0000.00718.11
8.1.280.0070.01025.92
8.1.270.0060.00324.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.77
8.1.230.0000.01121.25
8.1.220.0030.00518.16
8.1.210.0040.00419.41
8.1.200.0070.00617.73
8.1.190.0090.00017.48
8.1.180.0000.00818.10
8.1.170.0040.00418.98
8.1.160.0030.00522.30
8.1.150.0040.00419.19
8.1.140.0000.00717.86
8.1.130.0070.00018.25
8.1.120.0000.00817.65
8.1.110.0050.00317.75
8.1.100.0070.00017.87
8.1.90.0070.00417.94
8.1.80.0040.00417.93
8.1.70.0000.00717.78
8.1.60.0030.00617.80
8.1.50.0000.00817.68
8.1.40.0000.00717.95
8.1.30.0080.00017.90
8.1.20.0000.00817.90
8.1.10.0000.00917.84
8.1.00.0040.00417.80
8.0.300.0040.00420.36
8.0.290.0040.00417.13
8.0.280.0070.00018.82
8.0.270.0000.00817.57
8.0.260.0000.00617.66
8.0.250.0030.00317.38
8.0.240.0040.00417.36
8.0.230.0000.00817.16
8.0.220.0050.00317.19
8.0.210.0040.00417.11
8.0.200.0040.00417.18
8.0.190.0050.00317.23
8.0.180.0050.00317.34
8.0.170.0000.00817.32
8.0.160.0000.00717.19
8.0.150.0040.00417.08
8.0.140.0060.00617.32
8.0.130.0000.00613.77
8.0.120.0060.00317.29
8.0.110.0050.00317.32
8.0.100.0000.00817.32
8.0.90.0080.00017.41
8.0.80.0060.00917.24
8.0.70.0040.00417.20
8.0.60.0050.00317.20
8.0.50.0020.00517.20
8.0.30.0150.00817.60
8.0.20.0050.01617.43
8.0.10.0050.00217.22
8.0.00.0080.00916.96
7.4.330.0020.00215.38
7.4.320.0060.00017.02
7.4.300.0000.00716.85
7.4.290.0030.00316.93
7.4.280.0040.00416.87
7.4.270.0000.00817.08
7.4.260.0030.00316.76
7.4.250.0040.00416.75
7.4.240.0000.00716.95
7.4.230.0030.00316.80
7.4.220.0070.01117.02
7.4.210.0110.00416.91
7.4.200.0000.00716.76
7.4.160.0140.00316.87
7.4.150.0160.00717.40
7.4.140.0080.01017.86
7.4.130.0060.01316.84
7.4.120.0100.00916.76
7.4.110.0110.01116.81
7.4.100.0100.00616.91
7.4.90.0100.00716.86
7.4.80.0090.01219.39
7.4.70.0090.00816.93
7.4.60.0150.00716.89
7.4.50.0030.00616.87
7.4.40.0100.00716.79
7.4.30.0160.00316.69
7.4.00.0060.00915.24
7.3.330.0060.00013.53
7.3.320.0050.00013.54
7.3.310.0030.00316.73
7.3.300.0000.00716.63
7.3.290.0100.00316.70
7.3.280.0100.01016.60
7.3.270.0070.01717.40
7.3.260.0030.01716.90
7.3.250.0120.00616.74
7.3.240.0080.01916.69
7.3.230.0110.00717.03
7.3.210.0090.01016.81
7.3.200.0090.00919.39
7.3.190.0060.01116.92
7.3.180.0030.01216.60
7.3.170.0060.01117.01
7.3.160.0100.00616.93
7.3.120.0070.01014.87
7.3.10.0140.00516.72
7.3.00.0070.00516.72
7.2.330.0100.00717.05
7.2.320.0100.00716.90
7.2.310.0090.01316.94
7.2.300.0030.01317.14
7.2.290.0090.01216.82
7.2.130.0090.00516.92
7.2.120.0070.00616.92
7.2.110.0050.01016.62
7.2.100.0030.01216.77
7.2.90.0090.00316.94
7.2.80.0100.00916.99
7.2.70.0070.00517.15
7.2.60.0090.00516.92
7.2.50.0100.00517.06
7.2.40.0090.00817.11
7.2.30.0110.00616.83
7.2.20.0080.01116.87
7.2.10.0050.00717.17
7.2.00.0060.00717.95
7.1.250.0050.00815.92
7.1.200.0090.00616.22
7.1.100.0060.00918.25
7.1.70.0070.00417.09
7.1.60.0140.01019.40
7.1.50.0130.01017.07
7.1.00.0070.07322.70
7.0.200.0050.00217.10
7.0.140.0000.07722.39
7.0.60.0170.06720.20
7.0.50.0070.07718.06
7.0.40.0130.08020.13
7.0.30.0230.07720.28
7.0.20.0300.05020.21
7.0.10.0100.04720.39
7.0.00.0130.03720.37
5.6.280.0070.07021.20
5.6.210.0170.06020.91
5.6.200.0070.07318.42
5.6.190.0100.04020.50
5.6.180.0470.04720.88
5.6.170.0330.08020.74
5.6.160.0030.04320.59
5.6.150.0000.08718.32
5.6.140.0070.08018.37
5.6.130.0130.07718.39
5.6.120.0100.08321.26
5.6.110.0030.05321.26
5.6.100.0070.08721.16
5.6.90.0070.07721.24
5.6.80.0130.07720.59
5.5.350.0330.06720.61
5.5.340.0070.03318.16
5.5.330.0100.07020.68
5.5.320.2870.03720.52
5.5.310.0330.06020.39
5.5.300.0070.08018.19
5.5.290.0070.06718.16
5.5.280.0070.07020.94
5.5.270.0170.07020.96
5.5.260.0170.08020.90
5.5.250.0070.05020.89
5.5.240.0130.07720.32
5.4.450.0700.04719.51
5.4.440.0100.05719.84
5.4.430.0170.05019.52
5.4.420.0230.06319.73
5.4.410.0130.05319.50
5.4.400.0200.05019.38
5.4.390.0100.07019.20
5.4.380.0170.05718.82
5.4.370.0270.03018.59
5.4.360.0230.03718.84
5.4.350.0050.05012.22
5.4.340.0060.04312.21
5.4.320.0080.04012.70
5.4.310.0070.04012.70
5.4.300.0050.04012.70
5.4.290.0070.04112.70
5.4.280.0100.04012.59
5.4.270.0080.04012.59
5.4.260.0060.03812.59
5.4.250.0030.04112.59
5.4.240.0100.03212.60
5.4.230.0070.03812.59
5.4.220.0070.03512.59
5.4.210.0070.03512.59
5.4.200.0060.03812.59
5.4.190.0070.03512.59
5.4.180.0080.03412.58
5.4.170.0060.03612.60
5.4.160.0050.04112.59
5.4.150.0080.04312.59
5.4.140.0040.04412.27
5.4.130.0110.03712.26
5.4.120.0070.04212.21
5.4.110.0110.03612.21
5.4.100.0070.04012.21
5.4.90.0040.03912.21
5.4.80.0090.03412.21
5.4.70.0070.03412.21
5.4.60.0060.03812.21
5.4.50.0070.03412.20
5.4.40.0060.03512.19
5.4.30.0040.04312.19
5.4.20.0070.03312.19
5.4.10.0050.03612.19
5.4.00.0100.03211.68
5.3.290.0120.04212.96
5.3.280.0080.04412.89
5.3.270.0050.04012.90
5.3.260.0070.04012.91
5.3.250.0030.04312.91
5.3.240.0050.03912.91
5.3.230.0060.03812.90
5.3.220.0070.04512.87
5.3.210.0040.04012.87
5.3.200.0080.04012.86
5.3.190.0070.03712.87
5.3.180.0090.03412.87
5.3.170.0070.03612.86
5.3.160.0080.03412.88
5.3.150.0070.03612.86
5.3.140.0070.03512.86
5.3.130.0050.03912.85
5.3.120.0090.04112.85
5.3.110.0070.03812.85
5.3.100.0090.04412.33
5.3.90.0070.03812.31
5.3.80.0090.03812.30
5.3.70.0060.04112.30
5.3.60.0030.04012.29
5.3.50.0070.03812.23
5.3.40.0100.03312.23
5.3.30.0050.03712.20
5.3.20.0060.03611.97
5.3.10.0060.03511.95
5.3.00.0070.03411.93
5.2.170.0050.0309.43
5.2.160.0040.0319.43
5.2.150.0030.0329.43
5.2.140.0080.0279.43
5.2.130.0080.0399.39
5.2.120.0060.0279.39
5.2.110.0070.0309.39
5.2.100.0040.0299.39
5.2.90.0050.0299.39
5.2.80.0050.0309.38
5.2.70.0030.0339.38
5.2.60.0060.0309.34
5.2.50.0060.0359.31
5.2.40.0080.0349.29
5.2.30.0040.0319.25
5.2.20.0060.0299.25
5.2.10.0070.0289.17
5.2.00.0070.0279.03
5.1.60.0090.0258.32
5.1.50.0040.0258.31
5.1.40.0040.0358.29
5.1.30.0060.0248.64
5.1.20.0070.0298.66
5.1.10.0060.0288.39
5.1.00.0050.0298.38
5.0.50.0060.0216.86
5.0.40.0030.0256.71
5.0.30.0040.0336.53
5.0.20.0080.0226.50
5.0.10.0040.0286.48
5.0.00.0030.0306.47
4.4.90.0030.0154.78
4.4.80.0020.0194.76
4.4.70.0030.0164.76
4.4.60.0040.0154.76
4.4.50.0020.0164.77
4.4.40.0050.0284.70
4.4.30.0050.0184.76
4.4.20.0040.0164.84
4.4.10.0040.0144.85
4.4.00.0020.0294.76
4.3.110.0050.0174.67
4.3.100.0030.0184.66
4.3.90.0020.0154.64
4.3.80.0030.0314.58
4.3.70.0020.0204.63
4.3.60.0020.0204.63
4.3.50.0020.0184.63
4.3.40.0060.0264.54
4.3.30.0030.0153.28
4.3.20.0020.0173.26
4.3.10.0030.0143.21
4.3.00.0130.0207.13

preferences:
42.59 ms | 401 KiB | 5 Q