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>'; function f($xml){ foreach ($xml as $key => $value) { var_dump($key, $value->hasChildren(), $value, '============='); if (get_class($value) == 'SimpleXMLIterator') f($value); } } f(new SimpleXMLIterator($s));

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.0040.01118.81
8.3.50.0150.00522.17
8.3.40.0110.00718.86
8.3.30.0110.01418.87
8.3.20.0040.00418.85
8.3.10.0030.00620.70
8.3.00.0030.00622.02
8.2.180.0130.00716.88
8.2.170.0130.00322.96
8.2.160.0030.01220.53
8.2.150.0000.00924.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00519.50
8.2.110.0070.00322.38
8.2.100.0030.01018.03
8.2.90.0060.00319.50
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0070.00318.34
8.2.30.0030.00520.15
8.2.20.0060.00317.95
8.2.10.0000.00817.97
8.2.00.0030.00617.93
8.1.280.0070.01025.92
8.1.270.0030.00623.99
8.1.260.0080.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00322.23
8.1.230.0090.00317.89
8.1.220.0040.00417.92
8.1.210.0080.00418.77
8.1.200.0060.00317.60
8.1.190.0040.00417.47
8.1.180.0080.00018.10
8.1.170.0060.00318.79
8.1.160.0000.00819.16
8.1.150.0030.00518.88
8.1.140.0040.00417.65
8.1.130.0000.00718.05
8.1.120.0030.00617.61
8.1.110.0000.00817.56
8.1.100.0040.00417.77
8.1.90.0040.00417.76
8.1.80.0040.00417.57
8.1.70.0050.00217.69
8.1.60.0080.00317.91
8.1.50.0060.00317.63
8.1.40.0050.00317.84
8.1.30.0060.00317.94
8.1.20.0060.00317.71
8.1.10.0030.00517.67
8.1.00.0000.00817.58
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.64
8.0.270.0000.00717.49
8.0.260.0000.00817.08
8.0.250.0030.00517.18
8.0.240.0060.00317.21
8.0.230.0030.00417.09
8.0.220.0070.00017.14
8.0.210.0000.00717.18
8.0.200.0000.00917.21
8.0.190.0050.00217.02
8.0.180.0040.00417.06
8.0.170.0040.00417.11
8.0.160.0040.00417.07
8.0.150.0030.00617.08
8.0.140.0060.00616.94
8.0.130.0060.00313.52
8.0.120.0080.00017.11
8.0.110.0040.00816.96
8.0.100.0030.00616.96
8.0.90.0000.00816.98
8.0.80.0090.00617.16
8.0.70.0050.00316.93
8.0.60.0000.00816.86
8.0.50.0000.00817.21
8.0.30.0120.00917.35
8.0.20.0110.01117.49
8.0.10.0040.00417.30
8.0.00.0120.00917.04
7.4.330.0000.00514.92
7.4.320.0000.00816.75
7.4.300.0030.00316.82
7.4.290.0040.00416.70
7.4.280.0000.00816.68
7.4.270.0060.00616.81
7.4.260.0030.00313.47
7.4.250.0000.00816.67
7.4.240.0000.00816.75
7.4.230.0030.00616.90
7.4.220.0110.00816.89
7.4.210.0060.01216.80
7.4.200.0040.00416.77
7.4.190.0050.00216.89
7.4.160.0170.00316.69
7.4.150.0000.02217.40
7.4.140.0120.01117.86
7.4.130.0090.01116.70
7.4.120.0090.01116.71
7.4.110.0140.00616.61
7.4.100.0080.01216.88
7.4.90.0100.01016.57
7.4.80.0100.01019.37
7.4.70.0130.00616.77
7.4.60.0110.00816.44
7.4.50.0070.00016.62
7.4.40.0000.01522.27
7.4.30.0120.00616.81
7.4.00.0070.01115.33
7.3.330.0050.00013.51
7.3.320.0030.00313.32
7.3.310.0020.00516.63
7.3.300.0060.00316.61
7.3.290.0110.00716.64
7.3.280.0130.00516.59
7.3.270.0070.01117.40
7.3.260.0100.01018.24
7.3.250.0050.01816.77
7.3.240.0150.00616.86
7.3.230.0080.01416.85
7.3.210.0190.00316.61
7.3.200.0130.01319.39
7.3.190.0100.01616.54
7.3.180.0060.01216.87
7.3.170.0060.01316.64
7.3.160.0040.01516.73
7.3.120.0130.00614.83
7.2.330.0120.00816.94
7.2.320.0130.01016.99
7.2.310.0150.00617.02
7.2.300.0100.01016.62
7.2.290.0060.01216.67
7.2.60.0120.00316.95
7.2.00.0070.01019.65
7.1.200.0030.01315.93
7.1.100.0030.01218.05
7.1.70.0030.00517.18
7.1.60.0070.01719.40
7.1.50.0070.02017.16
7.1.00.0030.06722.54
7.0.200.0000.00816.75
7.0.140.0070.07022.23
7.0.60.0100.07320.16
7.0.50.0100.08317.88
7.0.40.0070.07717.86
7.0.30.0000.07317.95
7.0.20.0030.05017.80
7.0.10.0070.08317.89
7.0.00.0070.08017.85
5.6.280.0100.06721.19
5.6.210.0030.08720.74
5.6.200.0100.07318.32
5.6.190.0070.07318.26
5.6.180.0170.07718.25
5.6.170.0170.07018.31
5.6.160.0070.08018.32
5.6.150.0100.05718.22
5.6.140.0000.07718.35
5.6.130.0100.08018.26
5.6.120.0030.07718.35
5.6.110.0100.06318.18
5.6.100.0100.04718.31
5.6.90.0030.05718.17
5.6.80.0070.04717.71
5.6.70.0170.06717.73
5.6.60.0030.05317.69
5.6.50.0070.05317.69
5.6.40.0070.07317.61
5.6.30.0030.04717.68
5.6.20.0100.05317.58
5.6.10.0030.08017.68
5.6.00.0030.05317.55
5.5.350.0370.07320.60
5.5.340.0070.07018.21
5.5.330.0030.04318.11
5.5.320.0000.08318.16
5.5.310.0000.09018.03
5.5.300.0130.07718.16
5.5.290.0030.08018.15
5.5.280.0130.07018.12
5.5.270.0000.04718.09
5.5.260.0170.05718.14
5.5.250.0030.08317.96
5.5.240.0100.06317.44
5.5.230.0030.05317.40
5.5.220.0070.08317.54
5.5.210.0100.07017.58
5.5.200.0100.04017.51
5.5.190.0170.07017.37
5.5.180.0070.07017.50
5.5.160.0130.07317.40
5.5.150.0030.07017.47
5.5.140.0100.05317.38
5.5.130.0070.04317.36
5.5.120.0070.04717.50
5.5.110.0030.04317.42
5.5.100.0070.05717.41
5.5.90.0100.06717.36
5.5.80.0170.06717.36
5.5.70.0070.07317.33
5.5.60.0130.07017.44
5.5.50.0100.07317.35
5.5.40.0100.06017.43
5.5.30.0030.05717.34
5.5.20.0070.07317.25
5.5.10.0100.07317.39
5.5.00.0030.06717.29
5.4.450.0130.06319.56
5.4.440.0030.05319.35
5.4.430.0100.06319.58
5.4.420.0070.06719.51
5.4.410.0070.04719.32
5.4.400.0000.07019.07
5.4.390.0030.06019.03
5.4.380.0100.08019.21
5.4.370.0100.05319.14
5.4.360.0030.07319.26
5.4.350.0030.07719.19
5.4.340.0130.06319.23
5.4.320.0130.08019.17
5.4.310.0070.06719.21
5.4.300.0070.07319.05
5.4.290.0100.07719.22
5.4.280.0030.05319.20
5.4.270.0000.04719.34
5.4.260.0030.04019.23
5.4.250.0200.03719.34
5.4.240.0030.06319.18
5.4.230.0130.05319.02
5.4.220.0100.07318.95
5.4.210.0100.07018.95
5.4.200.0070.08319.25
5.4.190.0070.06319.12
5.4.180.0070.07719.12
5.4.170.0000.08319.08
5.4.160.0070.06019.04
5.4.150.0000.04319.01
5.4.140.0070.04016.55
5.4.130.0030.03316.41
5.4.120.0000.03716.61
5.4.110.0030.04016.53
5.4.100.0000.03716.65
5.4.90.0070.03716.66
5.4.80.0100.02716.52
5.4.70.0100.02716.54
5.4.60.0070.03016.46
5.4.50.0030.03316.52
5.4.40.0070.03016.50
5.4.30.0000.03716.68
5.4.20.0100.03716.54
5.4.10.0030.03716.52
5.4.00.0030.03315.99
5.3.290.0070.08014.73
5.3.280.0100.07314.74
5.3.270.0200.06714.72
5.3.260.0100.05014.67
5.3.250.0000.04014.79
5.3.240.0000.05014.80
5.3.230.0030.03714.71
5.3.220.0070.03314.60
5.3.210.0100.03714.76
5.3.200.0030.04314.71
5.3.190.0070.03314.69
5.3.180.0230.02314.68
5.3.170.0070.03314.55
5.3.160.0030.03714.68
5.3.150.0130.03314.73
5.3.140.0000.03714.84
5.3.130.0070.03714.69
5.3.120.0000.04014.84
5.3.110.0000.05014.61
5.3.100.0030.04314.20
5.3.90.0070.03014.05
5.3.80.0030.03714.13
5.3.70.0030.03714.16
5.3.60.0030.03314.13
5.3.50.0000.03714.23
5.3.40.0000.03713.93
5.3.30.0000.03714.02
5.3.20.0030.03313.79
5.3.10.0030.03313.62
5.3.00.0030.03313.76
5.2.170.0000.03011.30
5.2.160.0000.03011.31
5.2.150.0030.03011.14
5.2.140.0030.02711.22
5.2.130.0000.03011.36
5.2.120.0030.02711.42
5.2.110.0000.03311.18
5.2.100.0030.02711.23
5.2.90.0030.02711.23
5.2.80.0000.03011.21
5.2.70.0030.03311.25
5.2.60.0000.03311.04
5.2.50.0030.04011.19
5.2.40.0030.06011.25
5.2.30.0030.03310.95
5.2.20.0070.03311.05
5.2.10.0030.03011.02
5.2.00.0030.04310.84
5.1.60.0100.05010.13
5.1.50.0030.05710.16
5.1.40.0030.0439.96
5.1.30.0070.05010.49
5.1.20.0070.03010.61
5.1.10.0030.02710.21
5.1.00.0030.04010.22
5.0.50.0070.0308.66
5.0.40.0030.0238.66
5.0.30.0030.0708.66
5.0.20.0030.0238.66
5.0.10.0030.0308.66
5.0.00.0000.0638.66
4.4.90.0000.0138.66
4.4.80.0000.0208.66
4.4.70.0100.0238.66
4.4.60.0030.0338.66
4.4.50.0000.0178.66
4.4.40.0030.0508.66
4.4.30.0100.0308.66
4.4.20.0000.0178.66
4.4.10.0030.0338.66
4.4.00.0000.0338.66
4.3.110.0030.0378.66
4.3.100.0000.0378.66
4.3.90.0030.0338.66
4.3.80.0030.0538.66
4.3.70.0070.0308.66
4.3.60.0000.0308.66
4.3.50.0000.0208.66
4.3.40.0000.0338.66
4.3.30.0000.0278.66
4.3.20.0030.0338.66
4.3.10.0030.0238.66
4.3.00.0030.0308.66

preferences:
53.56 ms | 401 KiB | 5 Q