3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>'. '<request><body test2="321" test3="987">'. '<rows><my-row test4="564">'. '<types>'. '<custom>this is the example of the text</custom>'. '<Generic arch="simple">this is the example of the text</Generic>'. '<bold/><italic/><underlined/>'. '</types>'. '</my-row><my-row test5="565"/><test hidden="false" ready="true"/></rows>'. '</body></request>'; $obj = new SimpleXmlIterator($s); function f($xml){ foreach ($obj as $key => $value) { var_dump($key, $value->hasChildren(), $value, '============='); if (get_class($value) == 'SimpleXMLIterator') f($v); } } f($obj);

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.0090.00618.83
8.3.50.0070.01121.27
8.3.40.0140.00018.83
8.3.30.0090.00618.98
8.3.20.0060.00318.95
8.3.10.0070.00021.21
8.3.00.0070.00022.02
8.2.180.0000.01417.13
8.2.170.0140.00022.96
8.2.160.0070.00720.69
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00421.11
8.2.110.0110.00021.21
8.2.100.0090.00317.97
8.2.90.0050.00319.47
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00419.88
8.2.50.0000.00918.10
8.2.40.0050.00220.79
8.2.30.0070.00021.38
8.2.20.0080.00017.95
8.2.10.0040.00418.04
8.2.00.0030.00618.10
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00522.97
8.1.230.0070.00417.95
8.1.220.0040.00418.04
8.1.210.0000.00818.77
8.1.200.0080.00017.47
8.1.190.0060.00617.23
8.1.180.0060.00318.10
8.1.170.0030.00618.89
8.1.160.0040.00422.37
8.1.150.0040.00418.84
8.1.140.0070.00017.56
8.1.130.0030.00318.05
8.1.120.0070.00017.56
8.1.110.0000.00817.61
8.1.100.0040.00417.62
8.1.90.0040.00417.57
8.1.80.0040.00417.74
8.1.70.0030.00317.58
8.1.60.0040.00417.90
8.1.50.0040.00417.55
8.1.40.0040.00417.77
8.1.30.0000.00817.84
8.1.20.0000.00817.79
8.1.10.0050.00317.66
8.1.00.0050.00317.52
8.0.300.0030.00518.77
8.0.290.0090.00017.00
8.0.280.0040.00418.57
8.0.270.0030.00317.46
8.0.260.0030.00317.11
8.0.250.0040.00417.14
8.0.240.0000.00817.18
8.0.230.0000.00717.29
8.0.220.0000.00817.15
8.0.210.0040.00417.15
8.0.200.0040.00417.14
8.0.190.0080.00017.14
8.0.180.0050.00317.21
8.0.170.0050.00317.27
8.0.160.0000.00817.20
8.0.150.0040.00417.20
8.0.140.0040.00417.03
8.0.130.0000.00613.58
8.0.120.0000.00717.20
8.0.110.0050.00217.29
8.0.100.0070.00017.19
8.0.90.0040.00417.19
8.0.80.0130.00717.21
8.0.70.0040.00417.05
8.0.60.0040.00417.17
8.0.50.0060.00317.17
8.0.30.0120.00717.32
8.0.20.0070.01317.40
8.0.10.0050.00317.35
8.0.00.0130.00617.09
7.4.330.0000.00516.94
7.4.320.0040.00416.70
7.4.300.0030.00316.79
7.4.290.0070.00016.73
7.4.280.0040.00416.77
7.4.270.0030.00316.85
7.4.260.0000.00513.42
7.4.250.0070.00016.75
7.4.240.0050.00216.90
7.4.230.0030.00316.71
7.4.220.0070.01416.79
7.4.210.0060.00816.74
7.4.200.0070.00016.93
7.4.190.0000.00716.89
7.4.160.0040.01316.73
7.4.150.0100.01317.40
7.4.140.0080.01117.86
7.4.130.0140.00616.74
7.4.120.0090.01016.79
7.4.110.0120.00916.93
7.4.100.0100.00716.64
7.4.90.0090.00916.74
7.4.80.0120.01219.39
7.4.70.0090.00616.63
7.4.60.0100.01016.96
7.4.50.0030.00616.95
7.4.40.0030.01122.77
7.4.30.0060.01216.88
7.4.00.0060.01015.11
7.3.330.0000.00513.38
7.3.320.0000.00513.34
7.3.310.0040.00416.46
7.3.300.0040.00416.65
7.3.290.0070.01316.57
7.3.280.0050.01116.59
7.3.270.0100.00717.40
7.3.260.0100.01118.24
7.3.250.0170.00616.71
7.3.240.0070.01116.59
7.3.230.0100.00616.57
7.3.210.0000.01816.58
7.3.200.0130.01019.39
7.3.190.0070.01016.72
7.3.180.0080.00816.69
7.3.170.0040.01116.80
7.3.160.0080.00816.57
7.3.120.0070.00715.06
7.2.330.0100.00716.97
7.2.320.0110.01116.86
7.2.310.0070.01416.63
7.2.300.0060.01216.80
7.2.290.0120.00616.90
7.2.00.0070.00719.23
7.1.100.0070.00718.27
7.1.70.0100.00017.23
7.1.60.0180.00619.40
7.1.50.0030.01616.63
7.1.00.0030.05022.42
7.0.200.0040.00416.97
7.0.140.0030.07322.13
7.0.100.0070.07720.18
7.0.90.0070.06019.90
7.0.80.0030.08019.96
7.0.70.0100.07720.01
7.0.60.0030.04719.93
7.0.50.0430.07320.46
7.0.40.0100.06720.22
7.0.30.0130.08019.99
7.0.20.0100.06019.98
7.0.10.0100.04020.08
7.0.00.0070.08020.03
5.6.280.0070.07021.04
5.6.250.0100.08020.48
5.6.240.0170.07720.49
5.6.230.0130.08320.74
5.6.220.0130.05720.62
5.6.210.0130.06320.52
5.6.200.0130.06720.94
5.6.190.0100.04321.01
5.6.180.0170.04721.04
5.6.170.0100.08021.02
5.6.160.0030.06320.99
5.6.150.0100.08321.11
5.6.140.0100.07721.21
5.6.130.0030.09320.95
5.6.120.0100.08021.08
5.6.110.0130.04320.94
5.6.100.0170.05021.06
5.6.90.0030.05321.03
5.6.80.0000.05020.45
5.6.70.0030.08020.49
5.6.60.0000.06720.50
5.6.50.0070.04720.49
5.6.40.0030.08020.38
5.6.30.0100.06720.41
5.6.20.0130.03720.44
5.6.10.0000.05020.49
5.6.00.0100.03320.37
5.5.380.0030.07020.51
5.5.370.0070.07720.42
5.5.360.0100.04720.34
5.5.350.0230.06720.45
5.5.340.0030.04720.70
5.5.330.0100.07720.86
5.5.320.0130.07320.84
5.5.310.0030.05020.79
5.5.300.0100.04720.75
5.5.290.0030.04320.79
5.5.280.0100.05320.92
5.5.270.0070.07020.88
5.5.260.0100.08020.77
5.5.250.0130.06320.64
5.5.240.0100.07320.34
5.5.230.0030.07720.16
5.5.220.0130.05020.08
5.5.210.0070.04020.20
5.5.200.0030.08720.21
5.5.190.0070.04020.13
5.5.180.0170.04020.27
5.5.160.0070.04020.31
5.5.150.0000.04320.11
5.5.140.0030.04020.23
5.5.130.0030.04020.35
5.5.120.0030.04020.30
5.5.110.0100.03320.24
5.5.100.0070.04020.05
5.5.90.0070.03320.15
5.5.80.0030.03720.16
5.5.70.0030.04020.22
5.5.60.0030.04020.15
5.5.50.0030.03720.17
5.5.40.0070.03320.08
5.5.30.0100.05720.19
5.5.20.0030.03720.08
5.5.10.0070.05020.11
5.5.00.0030.04020.09
5.4.450.0000.06019.57
5.4.440.0070.07719.70
5.4.430.0100.04319.54
5.4.420.0070.06019.44
5.4.410.0130.03019.39
5.4.400.0070.05018.99
5.4.390.0030.05019.36
5.4.380.0070.03719.23
5.4.370.0230.06318.94
5.4.360.0100.05719.36
5.4.350.0070.04319.27
5.4.340.0000.04319.25
5.4.320.0070.03718.95
5.4.310.0070.03719.30
5.4.300.0170.02319.22
5.4.290.0070.04019.27
5.4.280.0030.03319.24
5.4.270.0070.05319.25
5.4.260.0070.03719.25
5.4.250.0030.03719.01
5.4.240.0000.04019.24
5.4.230.0000.03319.03
5.4.220.0000.04319.23
5.4.210.0030.03719.23
5.4.200.0030.04318.96
5.4.190.0030.03319.09
5.4.180.0030.04019.21
5.4.170.0030.04019.09
5.4.160.0030.03719.21
5.4.150.0000.04019.10
5.4.140.0030.03316.48
5.4.130.0000.03716.50
5.4.120.0100.03316.48
5.4.110.0000.03716.56
5.4.100.0030.03716.58
5.4.90.0030.03316.69
5.4.80.0030.03316.56
5.4.70.0070.03316.50
5.4.60.0000.03716.66
5.4.50.0000.03316.53
5.4.40.0000.03316.46
5.4.30.0030.05716.66
5.4.20.0030.05716.53
5.4.10.0030.03716.48
5.4.00.0030.03315.93
5.3.290.0070.04314.66
5.3.280.0030.03314.71
5.3.270.0130.06014.63
5.3.260.0000.04014.80
5.3.250.0100.02314.63
5.3.240.0030.03314.82
5.3.230.0030.03714.76
5.3.220.0100.03314.82
5.3.210.0070.03714.69
5.3.200.0130.02714.82
5.3.190.0070.03314.77
5.3.180.0130.02314.77
5.3.170.0000.04014.82
5.3.160.0000.04014.70
5.3.150.0100.03014.63
5.3.140.0070.03314.62
5.3.130.0070.03714.61
5.3.120.0130.03014.67
5.3.110.0070.03714.68
5.3.100.0030.03714.13
5.3.90.0000.03314.13
5.3.80.0030.03714.01
5.3.70.0000.03314.22
5.3.60.0030.03314.06
5.3.50.0070.03014.01
5.3.40.0000.04013.95
5.3.30.0070.03314.15
5.3.20.0070.05713.75
5.3.10.0030.05013.65
5.3.00.0030.07013.63
5.2.170.0100.03011.30
5.2.160.0070.02011.21
5.2.150.0000.03311.36
5.2.140.0030.03711.28
5.2.130.0030.04711.34
5.2.120.0070.06011.06
5.2.110.0000.06311.16
5.2.100.0070.06011.23
5.2.90.0030.05311.26
5.2.80.0030.04311.20
5.2.70.0030.05711.25
5.2.60.0100.05711.18
5.2.50.0100.05311.27
5.2.40.0070.05011.14
5.2.30.0030.06311.08
5.2.20.0070.06010.95
5.2.10.0070.03711.05
5.2.00.0070.05010.82
5.1.60.0030.03010.09
5.1.50.0000.03010.24
5.1.40.0070.05010.21
5.1.30.0030.04010.32
5.1.20.0200.03310.61
5.1.10.0070.02710.19
5.1.00.0030.05310.19
5.0.50.0000.0508.69
5.0.40.0000.0478.69
5.0.30.0000.0538.69
5.0.20.0000.0438.69
5.0.10.0030.0438.69
5.0.00.0070.0608.69
4.4.90.0000.0308.69
4.4.80.0000.0408.69
4.4.70.0070.0338.69
4.4.60.0000.0338.69
4.4.50.0070.0278.69
4.4.40.0000.0408.69
4.4.30.0000.0308.69
4.4.20.0000.0208.69
4.4.10.0000.0278.69
4.4.00.0100.0508.69
4.3.110.0030.0308.69
4.3.100.0030.0378.69
4.3.90.0030.0278.69
4.3.80.0000.0408.69
4.3.70.0070.0308.69
4.3.60.0030.0238.69
4.3.50.0000.0378.69
4.3.40.0000.0538.69
4.3.30.0000.0338.69
4.3.20.0000.0238.69
4.3.10.0000.0238.69
4.3.00.0000.0378.69

preferences:
41.84 ms | 401 KiB | 5 Q