3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> Moi <subparent> Hei </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.0120.00318.77
8.3.50.0100.01222.14
8.3.40.0070.00719.23
8.3.30.0110.00419.33
8.3.20.0070.00020.58
8.3.10.0040.00422.34
8.3.00.0030.00522.90
8.2.180.0130.00316.88
8.2.170.0030.01022.96
8.2.160.0100.00321.18
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0140.00426.16
8.2.120.0030.00618.00
8.2.110.0030.00622.55
8.2.100.0060.00619.95
8.2.90.0060.00319.66
8.2.80.0030.00618.16
8.2.70.0050.00517.50
8.2.60.0050.00318.41
8.2.50.0040.00418.07
8.2.40.0050.00218.47
8.2.30.0030.00618.36
8.2.20.0040.00418.01
8.2.10.0080.00019.86
8.2.00.0040.00418.14
8.1.280.0180.00325.92
8.1.270.0040.00422.44
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00924.32
8.1.230.0080.00419.43
8.1.220.0060.00318.02
8.1.210.0040.00418.77
8.1.200.0040.00417.73
8.1.190.0030.00617.76
8.1.180.0000.00818.10
8.1.170.0030.00518.76
8.1.160.0040.00422.40
8.1.150.0080.00019.01
8.1.140.0000.00717.82
8.1.130.0000.00718.16
8.1.120.0000.00817.89
8.1.110.0000.00817.92
8.1.100.0040.00417.74
8.1.90.0040.00417.85
8.1.80.0000.00817.87
8.1.70.0070.00017.63
8.1.60.0040.00417.99
8.1.50.0000.00717.94
8.1.40.0030.00617.93
8.1.30.0040.00418.04
8.1.20.0030.00518.03
8.1.10.0040.00417.94
8.1.00.0040.00417.92
8.0.300.0040.00418.77
8.0.290.0000.00717.41
8.0.280.0030.00318.84
8.0.270.0040.00417.63
8.0.260.0000.00817.09
8.0.250.0000.00717.26
8.0.240.0100.00017.16
8.0.230.0000.00717.41
8.0.220.0040.00417.32
8.0.210.0000.00717.31
8.0.200.0040.00417.13
8.0.190.0000.00717.41
8.0.180.0000.00717.25
8.0.170.0050.00317.09
8.0.160.0040.00417.19
8.0.150.0040.00417.29
8.0.140.0000.00817.05
8.0.130.0000.00613.79
8.0.120.0020.00517.09
8.0.110.0070.00017.34
8.0.100.0040.00417.25
8.0.90.0040.00417.23
8.0.80.0060.01217.14
8.0.70.0050.00217.20
8.0.60.0040.00417.11
8.0.50.0050.00217.11
8.0.30.0150.00417.43
8.0.20.0100.00817.44
8.0.10.0000.00717.40
8.0.00.0110.00817.14
7.4.330.0000.00515.39
7.4.320.0030.00316.89
7.4.300.0060.00016.83
7.4.290.0000.00816.80
7.4.280.0000.00716.95
7.4.270.0000.00716.97
7.4.260.0070.00016.87
7.4.250.0040.00416.85
7.4.240.0020.00517.00
7.4.230.0000.00816.70
7.4.220.0090.01616.87
7.4.210.0080.00716.95
7.4.200.0000.00816.93
7.4.190.0070.00017.14
7.4.160.0090.00616.82
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0080.01016.86
7.4.120.0080.00916.81
7.4.110.0070.01016.90
7.4.100.0110.00716.82
7.4.90.0100.00716.76
7.4.80.0040.01519.39
7.4.70.0030.01416.80
7.4.60.0060.01216.61
7.4.50.0000.00716.76
7.4.40.0070.01122.77
7.4.30.0040.01116.82
7.4.00.0100.00715.05
7.3.330.0050.00213.43
7.3.320.0000.00513.56
7.3.310.0040.00416.71
7.3.300.0050.00216.64
7.3.290.0030.01016.55
7.3.280.0070.01016.63
7.3.270.0120.00617.40
7.3.260.0070.01016.71
7.3.250.0080.00816.75
7.3.240.0150.00316.80
7.3.230.0150.00316.60
7.3.210.0060.00916.56
7.3.200.0060.01619.39
7.3.190.0030.01416.97
7.3.180.0100.00716.65
7.3.170.0060.01016.83
7.3.160.0120.00316.84
7.3.120.0070.00714.82
7.2.330.0100.00717.16
7.2.320.0130.00717.08
7.2.310.0090.00917.11
7.2.300.0100.00717.16
7.2.290.0100.01016.98
7.2.60.0000.01417.25
7.1.200.0090.00315.99
7.1.70.0030.00617.07
7.1.60.0140.01019.82
7.1.50.0100.01017.18
7.1.00.0030.07722.61
7.0.200.0000.01116.98
7.0.140.0070.07022.20
7.0.60.0130.07720.09
7.0.50.0000.06318.07
7.0.40.0130.08020.11
7.0.30.0230.06320.34
7.0.20.0170.04320.38
7.0.10.0170.07320.37
7.0.00.0070.09020.39
5.6.280.0030.07721.22
5.6.210.0030.04020.91
5.6.200.0070.07718.39
5.6.190.0030.08720.66
5.6.180.3300.03320.54
5.6.170.0230.04720.86
5.6.160.0070.04720.54
5.6.150.0070.03718.33
5.6.140.0070.08718.36
5.6.130.0100.04718.37
5.6.120.0000.05021.29
5.6.110.0070.07021.27
5.6.100.0130.07721.15
5.6.90.0030.04321.21
5.6.80.0130.07720.67
5.5.350.0230.05020.54
5.5.340.0000.04018.12
5.5.330.0130.07320.69
5.5.320.0330.03720.39
5.5.310.0300.03320.39
5.5.300.0100.04718.09
5.5.290.0100.07718.20
5.5.280.0130.05720.93
5.5.270.0100.07721.07
5.5.260.0000.08020.91
5.5.250.0100.07720.96
5.5.240.3670.03720.33
5.4.450.0100.08019.73
5.4.440.0030.08019.55
5.4.430.0070.07719.70
5.4.420.0030.07319.39
5.4.410.0030.08019.45
5.4.400.0130.07019.21
5.4.390.0070.04319.37
5.4.380.0070.07319.20
5.4.370.0130.07019.06
5.4.360.0170.05719.09
5.4.350.0030.05719.08
5.4.340.0130.06319.30
5.4.320.0070.08319.37
5.4.310.0130.04319.08
5.4.300.0130.04719.21
5.4.290.0170.04719.29
5.4.280.0170.06019.38
5.4.270.0070.06019.20
5.4.260.0230.04319.20
5.4.250.0070.05019.07
5.4.240.0100.05719.06
5.4.230.0070.05719.22
5.4.220.0130.03719.11
5.4.210.0230.07019.28
5.4.200.0300.06719.29
5.4.190.0100.04319.20
5.4.180.0100.04019.36
5.4.170.0130.06019.07
5.4.160.0170.04319.26
5.4.150.0230.07019.07
5.4.140.0400.02716.50
5.4.130.0170.07316.36
5.4.120.0130.06716.36
5.4.110.0170.06316.60
5.4.100.0270.06016.53
5.4.90.0130.06316.58
5.4.80.0170.04316.50
5.4.70.0070.05016.55
5.4.60.0270.06316.62
5.4.50.0130.06016.28
5.4.40.0130.05316.61
5.4.30.0130.04316.37
5.4.20.0200.03316.59
5.4.10.0100.07016.60
5.4.00.0100.04715.86
5.3.290.0200.06714.92
5.3.280.0100.06014.79
5.3.270.0100.06014.66
5.3.260.0130.04714.80
5.3.250.0130.04714.66
5.3.240.0200.07314.64
5.3.230.0200.06714.86
5.3.220.0070.05714.62
5.3.210.0170.07714.62
5.3.200.0170.07714.76
5.3.190.0330.06314.63
5.3.180.0200.05314.66
5.3.170.0200.07014.63
5.3.160.0270.06714.58
5.3.150.0270.06014.68
5.3.140.0200.06714.73
5.3.130.0130.07314.71
5.3.120.0170.07014.57
5.3.110.0100.04714.62
5.3.100.0100.04014.27
5.3.90.0130.07314.26
5.3.80.0100.06314.12
5.3.70.0100.07714.19
5.3.60.0230.06313.99
5.3.50.0200.05714.12
5.3.40.0100.04313.97
5.3.30.0100.06314.11
5.3.20.0100.05713.85
5.3.10.0170.06313.76
5.3.00.0270.03713.73
5.2.170.0100.06312.52
5.2.160.0100.04712.52
5.2.150.0100.05712.52
5.2.140.0070.06012.52
5.2.130.0070.06312.52
5.2.120.0070.05012.52
5.2.110.0130.06012.52
5.2.100.0030.06712.52
5.2.90.0030.04312.52
5.2.80.0000.03012.52
5.2.70.0000.04312.52
5.2.60.0030.04012.52
5.2.50.0030.05012.52
5.2.40.0100.05312.52
5.2.30.0030.02712.52
5.2.20.0000.06712.52
5.2.10.0030.04312.52
5.2.00.0130.05712.52
5.1.60.0030.04312.52
5.1.50.0100.04712.52
5.1.40.0070.04712.52
5.1.30.0000.06012.52
5.1.20.0000.05312.52
5.1.10.0070.04012.52
5.1.00.0030.03712.52
5.0.50.0030.02712.52
5.0.40.0030.04712.52
5.0.30.0030.04712.52
5.0.20.0030.03012.52
5.0.10.0000.04712.52
5.0.00.0100.05712.52
4.4.90.0030.03712.52
4.4.80.0000.03312.52
4.4.70.0030.02012.52
4.4.60.0000.02712.52
4.4.50.0030.02712.52
4.4.40.0030.03712.52
4.4.30.0000.03012.52
4.4.20.0000.03712.52
4.4.10.0030.03312.52
4.4.00.0000.03712.52
4.3.110.0100.03012.52
4.3.100.0000.03712.52
4.3.90.0070.03312.52
4.3.80.0000.04312.52
4.3.70.0000.03012.52
4.3.60.0000.03012.52
4.3.50.0030.02712.52
4.3.40.0000.05312.52
4.3.30.0030.03012.52
4.3.20.0070.02712.52
4.3.10.0000.03012.52
4.3.00.0100.02312.52

preferences:
57.95 ms | 400 KiB | 5 Q