3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<example xmlns:foo="my.foo.urn"> <foo:a>Яблоко</foo:a> <foo:b>Банан</foo:b> <c>Cherry</c> </example>'; $sxe = new SimpleXMLElement($xml); $kids = $sxe->children('foo'); var_dump(count($kids)); $kids = $sxe->children('foo', TRUE); var_dump(count($kids)); $kids = $sxe->children('my.foo.urn'); var_dump(count($kids)); $kids = $sxe->children('my.foo.urn', TRUE); var_dump(count($kids)); $kids = $sxe->children(); var_dump(count($kids)); echo $kids; ?>

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.0070.00718.43
8.3.50.0140.00622.96
8.3.40.0120.00318.87
8.3.30.0140.00019.39
8.3.20.0000.00720.46
8.3.10.0080.00023.75
8.3.00.0080.00019.38
8.2.180.0090.00616.88
8.2.170.0090.00922.96
8.2.160.0100.00620.47
8.2.150.0040.00424.18
8.2.140.0020.00424.66
8.2.130.0060.00626.16
8.2.120.0090.00021.20
8.2.110.0060.00320.52
8.2.100.0060.00618.34
8.2.90.0040.00419.34
8.2.80.0000.00917.97
8.2.70.0090.00317.75
8.2.60.0000.00818.18
8.2.50.0030.00518.07
8.2.40.0000.00818.34
8.2.30.0040.00418.29
8.2.20.0050.00317.89
8.2.10.0000.00818.28
8.2.00.0070.00017.86
8.1.280.0120.00925.92
8.1.270.0050.00324.07
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.29
8.1.230.0070.00319.06
8.1.220.0050.00318.01
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.73
8.1.160.0050.00322.14
8.1.150.0040.00419.03
8.1.140.0000.00717.61
8.1.130.0000.00718.01
8.1.120.0050.00217.74
8.1.110.0000.00817.63
8.1.100.0000.00717.57
8.1.90.0000.00717.63
8.1.80.0030.00317.65
8.1.70.0000.00717.57
8.1.60.0030.00617.74
8.1.50.0000.00817.79
8.1.40.0080.00017.68
8.1.30.0050.00317.72
8.1.20.0000.00717.86
8.1.10.0050.00317.67
8.1.00.0000.00717.69
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.53
8.0.270.0070.00017.46
8.0.260.0000.00617.38
8.0.250.0030.00317.02
8.0.240.0040.00417.04
8.0.230.0070.00017.03
8.0.220.0030.00317.03
8.0.210.0000.00717.07
8.0.200.0070.00017.06
8.0.190.0080.00017.02
8.0.180.0040.00417.06
8.0.170.0040.00417.11
8.0.160.0030.00417.09
8.0.150.0030.00317.06
8.0.140.0040.00417.01
8.0.130.0000.00513.53
8.0.120.0000.00817.01
8.0.110.0040.00416.91
8.0.100.0000.00717.12
8.0.90.0070.00017.14
8.0.80.0130.00617.03
8.0.70.0040.00416.91
8.0.60.0040.00417.09
8.0.50.0020.00516.96
8.0.30.0160.01017.42
8.0.20.0090.01117.40
8.0.10.0040.00417.22
8.0.00.0100.00916.93
7.4.330.0000.00515.29
7.4.320.0000.00616.70
7.4.300.0030.00316.80
7.4.290.0030.00316.78
7.4.280.0030.00916.75
7.4.270.0070.00016.78
7.4.260.0030.00316.79
7.4.250.0030.00516.77
7.4.240.0050.00316.68
7.4.230.0030.00316.71
7.4.220.0090.00916.70
7.4.210.0110.00316.72
7.4.200.0050.00216.88
7.4.160.0040.01516.67
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0070.01016.63
7.4.120.0110.00616.71
7.4.110.0070.01016.57
7.4.100.0110.00616.65
7.4.90.0180.00316.65
7.4.80.0130.00319.39
7.4.70.0140.01116.60
7.4.60.0100.00616.60
7.4.50.0030.00516.52
7.4.40.0170.00016.73
7.4.30.0120.00616.81
7.4.00.0090.00914.88
7.3.330.0090.00013.30
7.3.320.0000.00513.10
7.3.310.0030.00316.51
7.3.300.0000.00716.23
7.3.290.0140.00716.36
7.3.280.0090.00716.40
7.3.270.0120.01217.40
7.3.260.0140.00516.46
7.3.250.0100.00716.37
7.3.240.0100.01016.53
7.3.230.0120.00616.48
7.3.210.0120.00516.63
7.3.200.0100.01019.39
7.3.190.0130.00316.52
7.3.180.0140.00516.36
7.3.170.0150.00016.43
7.3.160.0060.01216.45
7.3.120.0030.01314.79
7.3.110.0080.00414.77
7.3.100.0030.00914.80
7.3.90.0080.00814.89
7.3.80.0090.00615.19
7.3.70.0030.01315.05
7.3.60.0000.01415.08
7.3.50.0000.01414.78
7.3.40.0070.00714.88
7.3.30.0000.01314.62
7.3.20.0130.00316.85
7.3.10.0030.00616.71
7.3.00.0090.00316.45
7.2.330.0110.00816.76
7.2.320.0050.01316.89
7.2.310.0090.00816.95
7.2.300.0030.01516.96
7.2.290.0110.00616.93
7.2.250.0060.01215.33
7.2.240.0070.01315.29
7.2.230.0030.00714.75
7.2.220.0140.00415.21
7.2.210.0030.00915.02
7.2.200.0030.00715.07
7.2.190.0070.01115.14
7.2.180.0040.00415.07
7.2.170.0060.00915.05
7.2.160.0040.00415.01
7.2.150.0100.00016.76
7.2.140.0110.00316.68
7.2.130.0060.00317.02
7.2.120.0070.00416.75
7.2.110.0070.00416.93
7.2.100.0040.00717.00
7.2.90.0070.00717.20
7.2.80.0070.00717.02
7.2.70.0000.00816.84
7.2.60.0080.00816.94
7.2.50.0120.00316.82
7.2.40.0000.01616.98
7.2.30.0000.01617.10
7.2.20.0090.00016.80
7.2.10.0080.00417.09
7.2.00.0030.00818.02
7.1.330.0090.00315.98
7.1.320.0000.01316.11
7.1.310.0000.01515.82
7.1.300.0040.00816.07
7.1.290.0000.01415.83
7.1.280.0030.00915.89
7.1.270.0060.00315.91
7.1.260.0060.00615.85
7.1.250.0040.00715.87
7.1.200.0000.00815.70
7.1.100.0060.00618.16
7.1.70.0000.00917.34
7.1.60.0000.01819.46
7.1.50.0110.01116.67
7.1.00.0070.07322.59
7.0.200.0080.00316.51
7.0.140.0100.07022.18
7.0.60.0070.08320.05
7.0.50.0070.09017.89
7.0.40.0130.06320.44
7.0.30.0230.03320.14
7.0.20.0230.05020.10
7.0.10.0200.07320.23
7.0.00.0130.08020.29
5.6.280.0070.07021.13
5.6.210.0070.09020.69
5.6.200.0000.09018.34
5.6.190.0030.08720.48
5.6.180.0400.07720.80
5.6.170.0130.07020.51
5.6.160.0100.05020.51
5.6.150.0170.04318.29
5.6.140.0200.06718.30
5.6.130.0030.05318.18
5.6.120.0070.06020.83
5.6.110.0200.07321.16
5.6.100.0030.04321.07
5.6.90.0230.06321.11
5.6.80.0070.04720.46
5.5.350.0230.07720.38
5.5.340.0070.06718.02
5.5.330.0070.07020.26
5.5.320.0300.03720.33
5.5.310.0330.04020.39
5.5.300.0070.08318.06
5.5.290.0170.03318.07
5.5.280.0030.05020.87
5.5.270.0070.04020.84
5.5.260.0070.07720.96
5.5.250.0000.04320.51
5.5.240.0200.07320.26
5.4.450.0300.03019.48
5.4.440.0230.04719.50
5.4.430.0430.04319.45
5.4.420.1530.03719.48
5.4.410.0130.04319.17
5.4.400.0430.04719.24
5.4.390.0300.04019.14
5.4.380.0370.05018.80
5.4.370.0400.05018.75
5.4.360.0300.05718.81
5.4.350.0400.07018.66
5.4.340.0300.06018.60
5.4.320.0100.03312.62
5.4.310.0050.04612.62
5.4.300.0070.03612.63
5.4.290.0050.03912.62
5.4.280.0100.03212.52
5.4.270.0050.03812.52
5.4.260.0040.04012.52
5.4.250.0080.03412.52
5.4.240.0100.03212.52
5.4.230.0070.03712.51
5.4.220.0100.03312.51
5.4.210.0070.03512.51
5.4.200.0060.03812.51
5.4.190.0100.03212.51
5.4.180.0050.03712.51
5.4.170.0080.03512.51
5.4.160.0090.03412.52
5.4.150.0060.03812.51
5.4.140.0020.04112.19
5.4.130.0040.03812.18
5.4.120.0070.03612.14
5.4.110.0050.04112.13
5.4.100.0050.03812.14
5.4.90.0080.03712.13
5.4.80.0050.03912.13
5.4.70.0120.03112.13
5.4.60.0050.03612.13
5.4.50.0060.03612.13
5.4.40.0050.03612.12
5.4.30.0040.03712.12
5.4.20.0060.03512.12
5.4.10.0070.03312.12
5.4.00.0050.03611.61
5.3.290.0060.03912.89
5.3.280.0100.03412.82
5.3.270.0080.03712.82
5.3.260.0110.03412.83
5.3.250.0070.03712.82
5.3.240.0050.03912.83
5.3.230.0090.03712.82
5.3.220.0090.04212.79
5.3.210.0070.04112.79
5.3.200.0060.04112.78
5.3.190.0040.04112.79
5.3.180.0050.03712.78
5.3.170.0080.03512.78
5.3.160.0100.03312.79
5.3.150.0050.03812.78
5.3.140.0050.04112.78
5.3.130.0070.03812.77
5.3.120.0040.04112.77
5.3.110.0070.03812.77
5.3.100.0060.04212.26
5.3.90.0070.04112.24
5.3.80.0030.04612.23
5.3.70.0100.04212.23
5.3.60.0050.03712.21
5.3.50.0090.03312.16
5.3.40.0070.03512.16
5.3.30.0040.03712.12
5.3.20.0050.03611.90
5.3.10.0070.03411.86
5.3.00.0070.03511.86
5.2.170.0040.0319.36
5.2.160.0040.0309.36
5.2.150.0030.0329.36
5.2.140.0050.0309.36
5.2.130.0100.0249.31
5.2.120.0060.0269.32
5.2.110.0070.0269.32
5.2.100.0050.0279.31
5.2.90.0020.0319.31
5.2.80.0050.0299.31
5.2.70.0020.0339.31
5.2.60.0100.0269.26
5.2.50.0080.0289.23
5.2.40.0060.0289.21
5.2.30.0070.0299.18
5.2.20.0040.0309.18
5.2.10.0040.0309.09
5.2.00.0040.0298.95
5.1.60.0040.0268.24
5.1.50.0040.0298.23
5.1.40.0050.0328.22
5.1.30.0050.0258.57
5.1.20.0040.0288.58
5.1.10.0010.0298.30
5.1.00.0030.0268.30
5.0.50.0030.0206.79
5.0.40.0020.0206.66
5.0.30.0040.0306.47
5.0.20.0030.0196.44
5.0.10.0040.0196.42
5.0.00.0060.0276.41
4.4.90.0030.0164.78
4.4.80.0060.0134.75
4.4.70.0020.0164.75
4.4.60.0050.0134.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0030.0164.76
4.4.20.0050.0144.84
4.4.10.0020.0174.85
4.4.00.0000.0294.76
4.3.110.0030.0214.67
4.3.100.0060.0194.67
4.3.90.0040.0204.64
4.3.80.0050.0304.59
4.3.70.0030.0224.63
4.3.60.0020.0224.63
4.3.50.0060.0204.63
4.3.40.0010.0264.54
4.3.30.0000.0193.29
4.3.20.0030.0193.28
4.3.10.0030.0203.23
4.3.00.0000.02018.23

preferences:
37.4 ms | 401 KiB | 5 Q