3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1'>Moi</child> <child name='Child2'>Terve</child> <subparent> <child name='Child3'>Hei</child> </subparent> </parent> <child name='Child4' /> </root>"; $xml = simplexml_load_string( $xml); $result = $xml->xpath('parent/child'); while(list( , $node) = each($result)) { echo 'b/c: ',$node,"\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.0150.00018.80
8.3.50.0120.01021.39
8.3.40.0110.00419.04
8.3.30.0100.00320.71
8.3.20.0030.00519.18
8.3.10.0080.00021.55
8.3.00.0000.00820.05
8.2.180.0120.00317.25
8.2.170.0110.00422.96
8.2.160.0150.00620.67
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.49
8.2.110.0030.00621.43
8.2.100.0110.00318.03
8.2.90.0000.00919.45
8.2.80.0050.00318.00
8.2.70.0030.00617.88
8.2.60.0000.00818.17
8.2.50.0000.00918.07
8.2.40.0060.00618.47
8.2.30.0040.00419.76
8.2.20.0000.00817.96
8.2.10.0000.00918.13
8.2.00.0040.00418.19
8.1.280.0170.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00822.43
8.1.230.0070.00419.26
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0030.00717.60
8.1.190.0030.00517.72
8.1.180.0030.00618.10
8.1.170.0080.00018.91
8.1.160.0070.00019.28
8.1.150.0030.00718.94
8.1.140.0070.00017.73
8.1.130.0030.00318.25
8.1.120.0040.00417.76
8.1.110.0070.00017.71
8.1.100.0030.00517.86
8.1.90.0050.00217.59
8.1.80.0030.00517.72
8.1.70.0070.00017.76
8.1.60.0000.00817.94
8.1.50.0050.00217.83
8.1.40.0050.00317.94
8.1.30.0080.00018.12
8.1.20.0040.00418.02
8.1.10.0060.00318.02
8.1.00.0080.00417.85
8.0.300.0040.00418.77
8.0.290.0060.00317.13
8.0.280.0030.00518.89
8.0.270.0060.00317.48
8.0.260.0030.00317.18
8.0.250.0050.00217.40
8.0.240.0030.00617.39
8.0.230.0070.00017.16
8.0.220.0000.00717.34
8.0.210.0030.00317.32
8.0.200.0030.00317.31
8.0.190.0060.00317.21
8.0.180.0040.00417.10
8.0.170.0050.00317.31
8.0.160.0000.00717.39
8.0.150.0050.00317.18
8.0.140.0040.00417.28
8.0.130.0030.00313.74
8.0.120.0040.00417.21
8.0.110.0050.00317.16
8.0.100.0000.00717.26
8.0.90.0000.00817.05
8.0.80.0060.00917.25
8.0.70.0030.00617.24
8.0.60.0040.00417.20
8.0.50.0040.00417.27
8.0.30.0170.00517.46
8.0.20.0150.00317.46
8.0.10.0060.00317.39
8.0.00.0100.00817.14
7.4.330.0000.00517.27
7.4.320.0000.00716.91
7.4.300.0030.00616.98
7.4.290.0030.00316.99
7.4.280.0000.00716.90
7.4.270.0030.00316.75
7.4.260.0000.00713.62
7.4.250.0040.00416.88
7.4.240.0000.00716.84
7.4.230.0030.00316.86
7.4.220.0140.00316.92
7.4.210.0090.00716.85
7.4.200.0070.00016.70
7.4.190.0000.00716.81
7.4.160.0130.00316.97
7.4.150.0120.00617.40
7.4.140.0170.00517.86
7.4.130.0090.00916.82
7.4.120.0110.00716.81
7.4.110.0070.01416.78
7.4.100.0110.00816.96
7.4.90.0110.00717.05
7.4.80.0180.00419.39
7.4.70.0120.00916.67
7.4.60.0100.00516.78
7.4.50.0020.00216.85
7.4.40.0030.01222.77
7.4.30.0060.01416.93
7.4.00.0130.00315.19
7.3.330.0050.00013.63
7.3.320.0030.00313.61
7.3.310.0080.00016.50
7.3.300.0030.00316.71
7.3.290.0090.00616.82
7.3.280.0090.01016.73
7.3.270.0060.01217.40
7.3.260.0150.00618.24
7.3.250.0100.00816.86
7.3.240.0090.00716.93
7.3.230.0040.01216.72
7.3.210.0100.00716.95
7.3.200.0160.00419.39
7.3.190.0130.00716.93
7.3.180.0150.00016.69
7.3.170.0060.01217.02
7.3.160.0090.00616.80
7.3.120.0070.00815.07
7.2.330.0130.00316.96
7.2.320.0160.00417.14
7.2.310.0130.00716.72
7.2.300.0040.01216.86
7.2.290.0060.01617.03
7.2.60.0060.00616.91
7.2.00.0060.01019.63
7.1.200.0040.00816.00
7.1.100.0060.00618.25
7.1.70.0030.00617.44
7.1.60.0030.01319.24
7.1.50.0070.01417.19
7.1.00.0030.03322.56
7.0.200.0000.00816.72
7.0.140.0070.07022.24
7.0.100.0000.06720.26
7.0.90.0170.04320.25
7.0.80.0100.08720.16
7.0.70.0030.07720.23
7.0.60.0230.07320.15
7.0.50.0130.04320.46
7.0.40.0000.04720.26
7.0.30.0100.07320.25
7.0.20.0030.05720.26
7.0.10.0130.06020.30
7.0.00.0030.09020.33
5.6.280.0030.07321.21
5.6.250.0100.07720.92
5.6.240.0100.07020.89
5.6.230.0170.07020.88
5.6.220.0070.06020.73
5.6.210.0030.05720.96
5.6.200.0030.04321.28
5.6.190.0130.06721.37
5.6.180.0030.05021.23
5.6.170.0070.03721.23
5.6.160.0100.06321.24
5.6.150.0030.06021.16
5.6.140.0070.06721.21
5.6.130.0030.09021.22
5.6.120.0100.09021.28
5.6.110.0070.08721.21
5.6.100.0030.07021.16
5.6.90.0030.08721.18
5.6.80.0070.08020.71
5.6.70.0200.05020.68
5.6.60.0070.07320.57
5.6.50.0070.03320.64
5.6.40.0100.03020.51
5.6.30.0000.06020.48
5.6.20.0100.03320.55
5.6.10.0030.06320.49
5.6.00.0100.07720.54
5.5.380.0130.05720.60
5.5.370.0130.08320.80
5.5.360.0130.04020.61
5.5.350.0200.06720.59
5.5.340.0130.05021.05
5.5.330.0030.06321.10
5.5.320.0070.08321.09
5.5.310.0030.06020.93
5.5.300.0000.07721.11
5.5.290.0070.08021.04
5.5.280.0070.03721.02
5.5.270.0130.08020.99
5.5.260.0030.04321.09
5.5.250.0100.06320.72
5.5.240.0100.03020.50
5.5.230.0070.04020.47
5.5.220.0070.03320.29
5.5.210.0100.03320.41
5.5.200.0070.05320.26
5.5.190.0070.08320.27
5.5.180.0030.04720.39
5.5.160.0100.06320.24
5.5.150.0000.04020.36
5.5.140.0070.07720.26
5.5.130.0130.08020.25
5.5.120.0130.05320.32
5.5.110.0200.07020.27
5.5.100.0000.04320.26
5.5.90.0030.07720.15
5.5.80.0000.06720.18
5.5.70.0070.05020.18
5.5.60.0030.07720.20
5.5.50.0130.07020.33
5.5.40.0030.08720.32
5.5.30.0030.06020.20
5.5.20.0070.05020.32
5.5.10.0100.06720.16
5.5.00.0000.05720.23
5.4.450.0130.07319.61
5.4.440.0100.08319.58
5.4.430.0030.04019.76
5.4.420.0070.08019.59
5.4.410.0030.04019.43
5.4.400.0100.06719.27
5.4.390.0030.05319.18
5.4.380.0030.06719.09
5.4.370.0000.05319.09
5.4.360.0030.06719.39
5.4.350.0030.07019.44
5.4.340.0000.06019.05
5.4.320.0000.04019.23
5.4.310.0130.06319.23
5.4.300.0000.04019.08
5.4.290.0100.04019.29
5.4.280.0030.08019.28
5.4.270.0000.04019.25
5.4.260.0070.07719.26
5.4.250.0130.06019.23
5.4.240.0100.05319.01
5.4.230.0000.04718.98
5.4.220.0030.06019.39
5.4.210.0100.06719.16
5.4.200.0100.03019.34
5.4.190.0030.05719.01
5.4.180.0100.05019.24
5.4.170.0100.04719.27
5.4.160.0170.05719.22
5.4.150.0030.03719.25
5.4.140.0130.07016.47
5.4.130.0000.05316.52
5.4.120.0100.05716.60
5.4.110.0070.03316.66
5.4.100.0030.04316.50
5.4.90.0030.04016.59
5.4.80.0000.04016.52
5.4.70.0070.03016.51
5.4.60.0030.04016.66
5.4.50.0070.03316.41
5.4.40.0000.03716.62
5.4.30.0000.04316.48
5.4.20.0070.02316.59
5.4.10.0070.02716.51
5.4.00.0070.02715.92
5.3.290.0000.06014.81
5.3.280.0030.04014.75
5.3.270.0000.03714.74
5.3.260.0030.05714.80
5.3.250.0070.03714.63
5.3.240.0000.04014.71
5.3.230.0070.06714.72
5.3.220.0030.04314.63
5.3.210.0000.04014.68
5.3.200.0000.04014.75
5.3.190.0070.04014.70
5.3.180.0030.03714.78
5.3.170.0070.03314.73
5.3.160.0000.04014.77
5.3.150.0000.04014.76
5.3.140.0000.03714.76
5.3.130.0000.04314.69
5.3.120.0030.03014.70
5.3.110.0000.04014.75
5.3.100.0000.04014.23
5.3.90.0000.03314.21
5.3.80.0100.03714.22
5.3.70.0000.03314.13
5.3.60.0000.03314.12
5.3.50.0000.06313.91
5.3.40.0000.04314.16
5.3.30.0000.04714.11
5.3.20.0000.05313.89
5.3.10.0030.03313.63
5.3.00.0030.03013.78
5.2.170.0030.02312.34
5.2.160.0070.02312.34
5.2.150.0030.02712.34
5.2.140.0030.06012.34
5.2.130.0030.02312.34
5.2.120.0070.04012.34
5.2.110.0000.03012.34
5.2.100.0030.02712.34
5.2.90.0000.03012.34
5.2.80.0030.02712.34
5.2.70.0000.03312.34
5.2.60.0100.02712.34
5.2.50.0030.03012.34
5.2.40.0000.03012.34
5.2.30.0030.03012.34
5.2.20.0030.02712.34
5.2.10.0000.03312.34
5.2.00.0030.03012.34
5.1.60.0070.02012.34
5.1.50.0000.02012.34
5.1.40.0000.03012.34
5.1.30.0030.02312.34
5.1.20.0000.02312.34
5.1.10.0030.02312.34
5.1.00.0000.02312.34
5.0.50.0030.02012.34
5.0.40.0030.01312.34
5.0.30.0000.03312.34
5.0.20.0000.02012.34
5.0.10.0000.02012.34
5.0.00.0070.02712.34
4.4.90.0030.01312.34
4.4.80.0000.01712.34
4.4.70.0030.01312.34
4.4.60.0000.01712.34
4.4.50.0000.01712.34
4.4.40.0000.02012.34
4.4.30.0030.01312.34
4.4.20.0000.01712.34
4.4.10.0000.01312.34
4.4.00.0000.02712.34
4.3.110.0070.01012.34
4.3.100.0030.01312.34
4.3.90.0030.01312.34
4.3.80.0000.02312.34
4.3.70.0000.01312.34
4.3.60.0000.01312.34
4.3.50.0000.01712.34
4.3.40.0000.02312.34
4.3.30.0000.01312.34
4.3.20.0000.01712.34
4.3.10.0000.01312.34
4.3.00.0000.01312.34

preferences:
55.93 ms | 400 KiB | 5 Q