3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<foo: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.0150.00618.55
8.3.50.0140.00720.05
8.3.40.0070.00718.92
8.3.30.0110.00318.95
8.3.20.0000.00720.66
8.3.10.0040.00424.16
8.3.00.0040.00419.75
8.2.180.0120.00316.73
8.2.170.0180.00022.96
8.2.160.0120.00320.59
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0060.00321.27
8.2.110.0030.00722.36
8.2.100.0120.00018.22
8.2.90.0080.00019.19
8.2.80.0030.00517.97
8.2.70.0090.00317.75
8.2.60.0050.00318.05
8.2.50.0060.00318.07
8.2.40.0030.00618.34
8.2.30.0040.00418.36
8.2.20.0040.00417.94
8.2.10.0030.00518.35
8.2.00.0000.00717.98
8.1.280.0110.01125.92
8.1.270.0060.00323.93
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.12
8.1.230.0090.00319.31
8.1.220.0080.00017.89
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0030.00517.48
8.1.180.0060.00318.10
8.1.170.0040.00418.86
8.1.160.0050.00222.21
8.1.150.0040.00419.16
8.1.140.0050.00217.62
8.1.130.0000.00918.11
8.1.120.0000.00717.53
8.1.110.0050.00317.59
8.1.100.0040.00417.59
8.1.90.0070.00017.52
8.1.80.0000.00717.61
8.1.70.0040.00417.59
8.1.60.0030.00617.71
8.1.50.0050.00317.86
8.1.40.0000.00717.70
8.1.30.0000.00917.80
8.1.20.0000.00917.96
8.1.10.0000.00717.66
8.1.00.0040.00417.70
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0070.00018.61
8.0.270.0050.00317.38
8.0.260.0000.00817.43
8.0.250.0000.00817.17
8.0.240.0040.00417.04
8.0.230.0030.00317.23
8.0.220.0030.00317.06
8.0.210.0030.00317.17
8.0.200.0000.00617.16
8.0.190.0070.00017.05
8.0.180.0070.00016.97
8.0.170.0050.00317.04
8.0.160.0050.00317.03
8.0.150.0070.00017.03
8.0.140.0040.00417.04
8.0.130.0030.00513.68
8.0.120.0030.00617.10
8.0.110.0040.00417.11
8.0.100.0070.00017.17
8.0.90.0040.00416.98
8.0.80.0060.01317.17
8.0.70.0050.00317.11
8.0.60.0040.00416.95
8.0.50.0020.00516.93
8.0.30.0140.00817.37
8.0.20.0120.00817.40
8.0.10.0000.00717.11
8.0.00.0140.00616.96
7.4.330.0020.00215.25
7.4.320.0040.00416.77
7.4.300.0060.00016.71
7.4.290.0000.00716.84
7.4.280.0000.00916.80
7.4.270.0030.00316.74
7.4.260.0040.00716.71
7.4.250.0000.00816.80
7.4.240.0000.00816.72
7.4.230.0030.00316.60
7.4.220.0080.01116.70
7.4.210.0070.01016.80
7.4.200.0000.00716.75
7.4.160.0060.00916.56
7.4.150.0070.01317.40
7.4.140.0050.01217.86
7.4.130.0100.00616.70
7.4.120.0120.00616.73
7.4.110.0060.01116.79
7.4.100.0140.00316.63
7.4.90.0060.01216.66
7.4.80.0080.01119.39
7.4.70.0130.00816.70
7.4.60.0060.00916.63
7.4.50.0040.00416.54
7.4.40.0090.00616.51
7.4.30.0080.00816.57
7.4.00.0030.01315.09
7.3.330.0000.01013.43
7.3.320.0020.00213.53
7.3.310.0030.00316.50
7.3.300.0000.00716.53
7.3.290.0000.01316.51
7.3.280.0050.01216.48
7.3.270.0000.01717.40
7.3.260.0140.00616.76
7.3.250.0110.00616.46
7.3.240.0090.01116.72
7.3.230.0040.01316.77
7.3.210.0120.00616.64
7.3.200.0190.00319.39
7.3.190.0090.00916.77
7.3.180.0060.01016.47
7.3.170.0030.01216.61
7.3.160.0060.01316.64
7.3.00.0060.00616.20
7.2.330.0170.00616.80
7.2.320.0070.01016.52
7.2.310.0130.00716.55
7.2.300.0060.01016.50
7.2.290.0060.01316.71
7.2.130.0150.00016.75
7.2.120.0110.00916.47
7.2.110.0100.01016.68
7.2.100.0050.00916.38
7.2.90.0140.00416.80
7.2.80.0160.00016.47
7.2.70.0160.00316.59
7.2.60.0070.00916.79
7.2.50.0110.01116.54
7.2.40.0170.00316.79
7.2.30.0070.01416.73
7.2.20.0090.01317.00
7.2.10.0100.01016.68
7.2.00.0080.00817.86
7.1.250.0070.01015.20
7.1.240.0130.00615.22
7.1.230.0190.00415.27
7.1.220.0150.00715.43
7.1.210.0090.00315.26
7.1.200.0060.00615.66
7.1.190.0160.00515.73
7.1.180.0070.00315.52
7.1.170.0100.00315.43
7.1.160.0190.00615.71
7.1.150.0070.01415.80
7.1.140.0040.01515.66
7.1.130.0130.00815.41
7.1.120.0110.00815.61
7.1.110.0040.01315.71
7.1.100.0080.01016.98
7.1.90.0160.00315.52
7.1.80.0090.01515.61
7.1.70.0090.00616.29
7.1.60.0090.01317.38
7.1.50.0070.01716.23
7.1.40.0180.00015.50
7.1.30.0100.01015.75
7.1.20.0060.00915.42
7.1.10.0110.00715.44
7.1.00.0090.04218.94
7.0.330.0110.00415.07
7.0.320.0180.00415.34
7.0.310.0100.01015.32
7.0.300.0160.00915.14
7.0.290.0140.00715.34
7.0.280.0130.01315.36
7.0.270.0110.01415.37
7.0.260.0120.01215.29
7.0.250.0180.01415.42
7.0.240.0140.00715.46
7.0.230.0130.00915.16
7.0.220.0170.00715.18
7.0.210.0120.00615.48
7.0.200.0060.00715.82
7.0.190.0150.00015.02
7.0.180.0110.00815.20
7.0.170.0080.00815.39
7.0.160.0100.01315.03
7.0.150.0070.00715.08
7.0.140.0060.04118.62
7.0.130.0090.00615.32
7.0.120.0060.00615.14
7.0.110.0110.00715.01
7.0.100.0150.00314.84
7.0.90.0060.00915.09
7.0.80.0100.00315.05
7.0.70.0060.01015.11
7.0.60.0130.04317.55
7.0.50.0090.02216.55
7.0.40.0020.02916.72
7.0.30.0150.04216.71
7.0.20.0150.03016.87
7.0.10.0130.03816.90
7.0.00.0020.02616.74
5.6.380.0100.01014.30
5.6.370.0080.00414.14
5.6.360.0070.01014.23
5.6.350.0060.01214.31
5.6.340.0130.00914.23
5.6.330.0080.01314.20
5.6.320.0100.00314.05
5.6.310.0040.01113.88
5.6.300.0060.00814.00
5.6.290.0060.00614.10
5.6.280.0070.04017.54
5.6.270.0060.00614.08
5.6.260.0120.00013.80
5.6.250.0030.01013.89
5.6.240.0100.00314.23
5.6.230.0100.00314.53
5.6.220.0030.00714.22
5.6.210.0080.04017.46
5.6.200.0050.02516.12
5.6.190.0110.04317.55
5.6.180.0130.02517.48
5.6.170.0150.02717.40
5.6.160.0100.04517.39
5.6.150.0110.03716.07
5.6.140.0030.04416.22
5.6.130.0140.04016.31
5.6.120.0130.03017.85
5.6.110.0100.04717.67
5.6.100.0090.02117.90
5.6.90.0060.04217.64
5.6.80.0050.02417.29
5.6.70.0000.01414.44
5.6.60.0040.00814.09
5.6.50.0000.01313.81
5.6.40.0000.01514.02
5.6.30.0060.00914.05
5.6.20.0070.00714.17
5.6.10.0070.00714.48
5.6.00.0000.01314.18
5.5.380.0040.00410.69
5.5.370.0120.00011.32
5.5.360.0030.00510.93
5.5.350.0070.04615.62
5.5.340.0080.03814.50
5.5.330.0080.04315.71
5.5.320.0200.02115.82
5.5.310.0160.03215.78
5.5.300.0020.02514.40
5.5.290.0120.03514.65
5.5.280.0060.04316.00
5.5.270.0070.03315.89
5.5.260.0110.03715.98
5.5.250.0040.02415.74
5.5.240.0030.04615.42
5.5.230.0080.00310.89
5.5.220.0060.00610.84
5.5.210.0100.00310.70
5.5.200.0050.00510.61
5.5.190.0060.00311.10
5.5.180.0040.00411.26
5.5.170.0040.00811.04
5.5.160.0000.01011.11
5.5.150.0090.00011.14
5.5.140.0030.00610.78
5.5.130.0090.00010.88
5.5.120.0040.00411.13
5.5.110.0050.00811.27
5.5.100.0000.01110.68
5.5.90.0060.00610.81
5.5.80.0000.00911.17
5.5.70.0040.00910.88
5.5.60.0080.00410.92
5.5.50.0030.00510.81
5.5.40.0000.00910.67
5.5.30.0030.00711.22
5.5.20.0000.01010.78
5.5.10.0030.00710.85
5.5.00.0090.00010.87
5.4.450.0190.02815.29
5.4.440.0200.02315.19
5.4.430.0250.02515.14
5.4.420.0160.02615.38
5.4.410.0220.02615.13
5.4.400.0130.02414.92
5.4.390.0170.02714.96
5.4.380.0290.02714.72
5.4.370.0250.04315.00
5.4.360.0360.03414.95
5.4.350.0190.03414.75
5.4.340.0300.02914.96
5.4.330.0080.00610.88
5.4.320.0060.02411.87
5.4.310.0040.02611.83
5.4.300.0070.02211.70
5.4.290.0090.02211.97
5.4.280.0100.01811.86
5.4.270.0110.01911.71
5.4.260.0120.01911.70
5.4.250.0090.02211.72
5.4.240.0100.01911.96
5.4.230.0100.02011.80
5.4.220.0070.02111.80
5.4.210.0080.02211.68
5.4.200.0060.02311.86
5.4.190.0100.02011.84
5.4.180.0060.02311.61
5.4.170.0070.02211.74
5.4.160.0050.02311.67
5.4.150.0100.01911.81
5.4.140.0040.02311.63
5.4.130.0080.01811.69
5.4.120.0070.01911.64
5.4.110.0080.02011.58
5.4.100.0100.01711.62
5.4.90.0050.02211.50
5.4.80.0070.02211.64
5.4.70.0070.02011.62
5.4.60.0090.01911.60
5.4.50.0080.01811.69
5.4.40.0080.01911.55
5.4.30.0040.02311.58
5.4.20.0060.02011.59
5.4.10.0070.02011.60
5.4.00.0080.02011.38
5.3.290.0060.02411.82
5.3.280.0090.02011.73
5.3.270.0080.02211.74
5.3.260.0080.02111.71
5.3.250.0080.02111.70
5.3.240.0050.02311.70
5.3.230.0070.01911.69
5.3.220.0070.02211.68
5.3.210.0050.02311.68
5.3.200.0030.02311.68
5.3.190.0030.02411.68
5.3.180.0070.01911.74
5.3.170.0070.01911.76
5.3.160.0060.02111.79
5.3.150.0060.01811.74
5.3.140.0070.01811.72
5.3.130.0040.02211.67
5.3.120.0080.02311.67
5.3.110.0080.02011.78
5.3.100.0040.02511.41
5.3.90.0050.02211.40
5.3.80.0090.02111.40
5.3.70.0060.02211.40
5.3.60.0060.02011.41
5.3.50.0090.01911.45
5.3.40.0040.02411.37
5.3.30.0080.02011.35
5.3.20.0080.01911.26
5.3.10.0050.02211.22
5.3.00.0050.02211.21
5.2.170.0040.0179.96
5.2.160.0050.0169.96
5.2.150.0020.0209.96
5.2.140.0070.0179.96
5.2.130.0070.0169.94
5.2.120.0060.0169.94
5.2.110.0040.0179.94
5.2.100.0020.0179.94
5.2.90.0030.0199.94
5.2.80.0050.0179.94
5.2.70.0040.0199.94
5.2.60.0050.0189.91
5.2.50.0070.0149.90
5.2.40.0040.0189.89
5.2.30.0030.0209.88
5.2.20.0040.0179.87
5.2.10.0080.0139.82
5.2.00.0070.0159.76
5.1.60.0030.0189.40
5.1.50.0030.0169.40
5.1.40.0040.0159.39
5.1.30.0070.0139.56
5.1.20.0060.0149.57
5.1.10.0060.0149.43
5.1.00.0060.0169.43
5.0.50.0070.0138.68
5.0.40.0070.0108.61
5.0.30.0050.0218.51
5.0.20.0050.0158.49
5.0.10.0040.0188.49
5.0.00.0070.0208.48
4.4.90.0010.0147.64
4.4.80.0070.0107.63
4.4.70.0040.0127.63
4.4.60.0080.0097.63
4.4.50.0030.0147.64
4.4.40.0030.0187.61
4.4.30.0040.0107.63
4.4.20.0040.0107.68
4.4.10.0020.0167.68
4.4.00.0050.0227.63
4.3.110.0020.0157.59
4.3.100.0070.0117.59
4.3.90.0060.0167.57
4.3.80.0030.0177.54
4.3.70.0040.0097.57
4.3.60.0020.0107.57
4.3.50.0050.0107.57
4.3.40.0020.0197.52
4.3.30.0020.0146.91
4.3.20.0030.0136.89
4.3.10.0030.0116.87
4.3.00.0030.01014.37

preferences:
51.38 ms | 400 KiB | 5 Q