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 ($obj as $key => $value) { var_dump($key, $value->hasChildren(), $value, '============='); if (get_class($value) == 'SimpleXMLIterator') f($v); } } 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.0080.00818.68
8.3.50.0120.00722.24
8.3.40.0040.01218.96
8.3.30.0070.00718.85
8.3.20.0040.00418.85
8.3.10.0040.00421.12
8.3.00.0040.00422.07
8.2.180.0000.01517.25
8.2.170.0100.00722.96
8.2.160.0060.00920.63
8.2.150.0090.00624.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0000.00821.25
8.2.110.0060.00320.60
8.2.100.0040.00818.16
8.2.90.0040.00419.42
8.2.80.0040.00417.97
8.2.70.0060.00617.75
8.2.60.0040.00418.18
8.2.50.0070.00318.07
8.2.40.0050.00318.28
8.2.30.0000.00721.37
8.2.20.0060.00317.84
8.2.10.0050.00318.02
8.2.00.0030.00517.93
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00622.72
8.1.230.0000.01121.10
8.1.220.0000.00818.77
8.1.210.0030.00819.06
8.1.200.0030.00617.60
8.1.190.0050.00317.78
8.1.180.0040.00418.10
8.1.170.0080.00018.76
8.1.160.0030.00319.10
8.1.150.0050.00518.84
8.1.140.0000.00717.61
8.1.130.0070.00018.03
8.1.120.0050.00217.56
8.1.110.0030.00317.71
8.1.100.0000.00717.74
8.1.90.0000.00717.77
8.1.80.0040.00417.57
8.1.70.0000.00717.69
8.1.60.0040.00417.87
8.1.50.0050.00317.70
8.1.40.0030.00517.71
8.1.30.0050.00217.89
8.1.20.0000.00817.78
8.1.10.0040.00417.64
8.1.00.0040.00417.75
8.0.300.0030.00620.16
8.0.290.0000.00817.41
8.0.280.0030.00518.62
8.0.270.0000.00817.39
8.0.260.0070.00017.11
8.0.250.0050.00317.31
8.0.240.0100.00017.09
8.0.230.0000.00717.12
8.0.220.0000.00717.06
8.0.210.0000.00817.07
8.0.200.0030.00317.27
8.0.190.0070.00017.30
8.0.180.0080.00017.06
8.0.170.0000.00717.26
8.0.160.0040.00417.07
8.0.150.0070.00017.02
8.0.140.0000.00717.09
8.0.130.0000.00513.54
8.0.120.0050.00217.18
8.0.110.0040.00417.20
8.0.100.0000.00817.24
8.0.90.0040.00417.09
8.0.80.0100.00917.07
8.0.70.0050.00217.28
8.0.60.0000.00717.00
8.0.50.0070.00017.03
8.0.30.0080.01117.32
8.0.20.0140.00617.40
8.0.10.0070.00017.23
8.0.00.0050.01417.05
7.4.330.0030.00316.98
7.4.320.0000.00716.70
7.4.300.0000.00716.71
7.4.290.0070.00016.92
7.4.280.0070.00316.80
7.4.270.0000.00716.83
7.4.260.0060.00013.61
7.4.250.0000.00716.80
7.4.240.0030.00316.63
7.4.230.0030.00316.81
7.4.220.0180.00416.80
7.4.210.0060.00816.76
7.4.200.0070.00016.63
7.4.190.0040.00416.77
7.4.160.0100.00616.78
7.4.150.0100.00717.40
7.4.140.0150.01217.86
7.4.130.0090.00816.79
7.4.120.0130.00716.78
7.4.110.0030.01316.93
7.4.100.0140.00316.73
7.4.90.0070.01116.83
7.4.80.0060.01019.39
7.4.70.0120.00616.91
7.4.60.0090.00616.74
7.4.50.0090.00016.66
7.4.40.0090.00622.77
7.4.30.0070.01016.57
7.4.10.0070.01315.27
7.4.00.0070.00915.14
7.3.330.0060.00013.61
7.3.320.0140.00013.38
7.3.310.0070.00016.68
7.3.300.0050.00316.64
7.3.290.0100.00716.56
7.3.280.0110.00716.61
7.3.270.0120.00617.40
7.3.260.0050.01218.24
7.3.250.0020.01516.58
7.3.240.0080.00916.63
7.3.230.0080.00816.81
7.3.210.0110.00716.87
7.3.200.0140.00319.39
7.3.190.0130.00916.56
7.3.180.0150.01016.52
7.3.170.0070.01016.63
7.3.160.0110.00516.60
7.3.130.0090.00914.84
7.3.120.0060.00915.09
7.3.110.0060.01314.54
7.3.100.0100.00314.84
7.3.90.0100.00014.97
7.3.80.0040.00814.89
7.3.70.0070.00414.88
7.3.60.0040.00814.72
7.3.50.0060.00915.10
7.3.40.0040.00714.97
7.3.30.0030.00614.75
7.3.20.0070.00716.70
7.3.10.0090.00616.79
7.3.00.0030.00916.68
7.2.330.0110.01116.85
7.2.320.0120.00616.91
7.2.310.0170.00716.77
7.2.300.0060.00916.85
7.2.290.0130.00916.84
7.2.260.0060.01014.93
7.2.250.0070.01115.20
7.2.240.0090.00615.09
7.2.230.0040.01214.98
7.2.220.0040.01215.01
7.2.210.0090.00315.07
7.2.200.0040.00414.98
7.2.190.0030.01414.71
7.2.180.0070.00715.30
7.2.170.0000.01315.09
7.2.160.0030.00915.05
7.2.150.0060.00916.71
7.2.140.0080.01116.95
7.2.130.0030.01116.91
7.2.120.0030.00716.84
7.2.110.0040.01117.04
7.2.100.0080.00316.97
7.2.90.0090.00316.96
7.2.80.0060.00916.97
7.2.70.0090.00017.06
7.2.60.0090.00316.98
7.2.50.0090.00616.97
7.2.40.0000.01416.99
7.2.30.0030.01317.15
7.2.20.0000.01416.83
7.2.10.0080.00817.03
7.2.00.0070.00818.21
7.1.330.0090.00615.68
7.1.320.0040.01115.77
7.1.310.0000.01415.88
7.1.300.0070.00715.86
7.1.290.0050.00315.92
7.1.280.0030.01015.80
7.1.270.0050.00515.79
7.1.260.0070.00715.81
7.1.250.0080.00415.73
7.1.240.0040.01115.74
7.1.230.0100.00315.77
7.1.220.0030.01215.94
7.1.210.0000.00915.66
7.1.200.0000.01715.70
7.1.190.0120.00315.61
7.1.180.0030.00615.75
7.1.170.0060.00915.88
7.1.160.0090.00015.71
7.1.150.0030.01015.82
7.1.140.0060.00915.73
7.1.130.0070.00715.82
7.1.120.0030.01015.79
7.1.110.0090.00315.88
7.1.100.0020.01016.79
7.1.90.0000.01315.95
7.1.80.0150.00015.70
7.1.70.0030.00516.31
7.1.60.0070.01117.51
7.1.50.0040.01316.38
7.1.40.0060.00615.59
7.1.30.0090.00615.99
7.1.20.0070.00315.83
7.1.10.0030.01015.54
7.1.00.0070.03419.14
7.0.330.0080.00415.44
7.0.320.0030.01015.48
7.0.310.0040.00715.34
7.0.300.0110.00415.36
7.0.290.0090.00615.62
7.0.280.0000.01315.59
7.0.270.0030.01415.48
7.0.260.0060.00615.39
7.0.250.0000.01415.22
7.0.240.0000.01215.56
7.0.230.0030.00615.38
7.0.220.0070.00315.50
7.0.210.0070.00315.66
7.0.200.0120.00616.01
7.0.190.0070.00715.60
7.0.180.0040.01115.38
7.0.170.0030.00915.45
7.0.160.0050.00515.52
7.0.150.0030.01115.69
7.0.140.0030.04018.80
7.0.130.0030.01015.38
7.0.120.0000.01315.47
7.0.110.0030.00915.34
7.0.100.0030.00515.49
7.0.90.0000.01415.61
7.0.80.0030.00915.45
7.0.70.0080.01818.56
7.0.60.0090.01818.63
7.0.50.0050.01918.85
7.0.40.0070.03316.88
7.0.30.0040.03616.76
7.0.20.0020.02816.91
7.0.10.0060.03416.93
7.0.00.0030.02716.82
5.6.400.0040.01414.11
5.6.390.0070.00414.47
5.6.380.0030.00714.60
5.6.370.0110.00414.44
5.6.360.0140.00314.43
5.6.350.0060.00614.34
5.6.340.0060.00814.41
5.6.330.0060.01214.24
5.6.320.0040.00914.41
5.6.310.0030.01014.55
5.6.300.0050.00514.06
5.6.290.0030.01014.45
5.6.280.0010.04217.66
5.6.270.0070.00314.48
5.6.260.0030.01014.16
5.6.250.0100.00314.20
5.6.240.0110.00414.22
5.6.230.0030.00614.32
5.6.220.0080.02817.48
5.6.210.0040.02217.71
5.6.200.0030.02517.67
5.6.190.0090.02317.80
5.6.180.0080.03217.91
5.6.170.0030.02817.60
5.6.160.0080.04117.89
5.6.150.0020.03717.76
5.6.140.0050.04317.72
5.6.130.0070.04217.81
5.6.120.0030.04317.86
5.6.110.0050.03817.66
5.6.100.0070.03817.66
5.6.90.0080.04217.71
5.6.80.0050.04017.49
5.6.70.0030.02617.33
5.6.60.0020.04517.52
5.6.50.0090.02517.61
5.6.40.0020.04317.42
5.6.30.0080.04017.40
5.6.20.0040.03917.54
5.6.10.0020.04517.37
5.6.00.0070.02317.35
5.5.380.0040.01214.49
5.5.370.0040.00414.10
5.5.360.0050.03217.41
5.5.350.0040.04517.50
5.5.340.0040.02417.51
5.5.330.0050.04617.64
5.5.320.0080.02817.50
5.5.310.0060.03217.76
5.5.300.0030.04017.78
5.5.290.0040.04417.85
5.5.280.0030.04017.68
5.5.270.0110.03217.54
5.5.260.0030.05217.67
5.5.250.0020.04017.55
5.5.240.0020.04317.27
5.5.230.0040.03017.30
5.5.220.0030.02517.19
5.5.210.0090.03117.21
5.5.200.0020.04717.22
5.5.190.0000.04917.28
5.5.180.0070.02317.28
5.5.170.0070.00714.10
5.5.160.0080.03917.19
5.5.150.0050.02317.21
5.5.140.0060.03317.29
5.5.130.0030.03017.14
5.5.120.0110.02117.29
5.5.110.0020.02717.36
5.5.100.0030.02617.06
5.5.90.0020.02317.23
5.5.80.0030.02317.21
5.5.70.0070.02017.24
5.5.60.0070.02017.26
5.5.50.0030.02317.27
5.5.40.0050.02217.24
5.5.30.0040.01817.20
5.5.20.0070.01717.31
5.5.10.0080.01817.20
5.5.00.0000.02917.19
5.4.450.0100.02015.32
5.4.440.0030.03015.38
5.4.430.0050.04215.44
5.4.420.0030.04215.29
5.4.410.0010.04115.42
5.4.400.0030.03515.05
5.4.390.0050.04515.01
5.4.380.0050.02715.45
5.4.370.0020.04415.13
5.4.360.0100.03615.04
5.4.350.0040.04015.07
5.4.340.0050.03315.10
5.4.330.0060.00611.14
5.4.320.0110.03015.30
5.4.310.0020.04215.16
5.4.300.0050.02715.24
5.4.290.0080.03515.22
5.4.280.0050.02115.28
5.4.270.0000.02515.21
5.4.260.0020.02415.11
5.4.250.0080.01515.07
5.4.240.0050.02115.16
5.4.230.0030.02015.17
5.4.220.0030.02315.15
5.4.210.0030.02215.14
5.4.200.0020.02015.25
5.4.190.0010.01815.25
5.4.180.0020.02815.10
5.4.170.0080.01715.26
5.4.160.0050.01715.21
5.4.150.0020.02115.05
5.4.140.0030.01913.81
5.4.130.0040.01813.83
5.4.120.0020.02313.94
5.4.110.0050.02113.87
5.4.100.0050.01813.83
5.4.90.0020.02513.83
5.4.80.0030.02013.88
5.4.70.0020.02013.95
5.4.60.0020.02713.82
5.4.50.0020.02313.83
5.4.40.0030.01813.87
5.4.30.0020.01713.92
5.4.20.0020.02113.90
5.4.10.0000.02013.90
5.4.00.0030.02013.58
5.3.290.0140.02713.00
5.3.280.0040.01912.96
5.3.270.0080.01612.94
5.3.260.0050.02012.96
5.3.250.0060.02012.87
5.3.240.0040.01812.96
5.3.230.0050.02712.92
5.3.220.0030.02112.85
5.3.210.0060.01912.90
5.3.200.0060.01912.90
5.3.190.0040.02612.89
5.3.180.0030.02512.90
5.3.170.0040.02312.86
5.3.160.0050.01912.90
5.3.150.0050.02312.91
5.3.140.0030.02612.89
5.3.130.0050.01912.95
5.3.120.0040.01912.95
5.3.110.0030.02012.95
5.3.100.0060.01612.70
5.3.90.0130.01812.57
5.3.80.0030.02012.63
5.3.70.0060.01812.59
5.3.60.0080.01512.54
5.3.50.0060.01612.59
5.3.40.0070.01712.58
5.3.30.0060.02112.56
5.3.20.0060.01812.52
5.3.10.0050.01412.44
5.3.00.0050.01912.45
5.2.170.0000.02711.32
5.2.160.0030.02011.32
5.2.150.0000.02711.36
5.2.140.0000.02311.32
5.2.130.0000.02311.32
5.2.120.0030.02011.32
5.2.110.0000.02311.32
5.2.100.0000.02311.32
5.2.90.0000.02311.32
5.2.80.0000.02311.32
5.2.70.0030.03011.32
5.2.60.0000.02311.32
5.2.50.0030.02011.32
5.2.40.0000.02311.32
5.2.30.0000.02311.32
5.2.20.0000.02711.32
5.2.10.0000.02311.32
5.2.00.0030.02311.32
5.1.60.0000.02011.32
5.1.50.0000.02311.32
5.1.40.0030.02011.32
5.1.30.0070.02311.32
5.1.20.0030.02711.32
5.1.10.0000.02011.32
5.1.00.0000.02311.32
5.0.50.0000.02011.32
5.0.40.0000.04011.32
5.0.30.0000.04311.32
5.0.20.0030.03311.32
5.0.10.0000.04311.32
5.0.00.0000.06311.32
4.4.90.0030.01011.32
4.4.80.0000.01711.32
4.4.70.0030.01011.32
4.4.60.0000.01311.32
4.4.50.0030.01011.32
4.4.40.0000.02011.32
4.4.30.0000.01711.32
4.4.20.0000.01311.32
4.4.10.0030.02011.32
4.4.00.0000.02311.32
4.3.110.0000.02711.32
4.3.100.0000.01711.32
4.3.90.0000.03711.32
4.3.80.0000.04711.32
4.3.70.0030.03711.32
4.3.60.0070.03011.32
4.3.50.0030.02311.32
4.3.40.0000.05011.32
4.3.30.0030.03711.32
4.3.20.0000.02711.32
4.3.10.0000.02011.32
4.3.00.0000.04011.32

preferences:
50.08 ms | 401 KiB | 5 Q