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) { print_r(array( $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.0150.00018.63
8.3.50.0090.00622.07
8.3.40.0110.00719.07
8.3.30.0110.00419.27
8.3.20.0080.00020.50
8.3.10.0040.00422.15
8.3.00.0080.00020.57
8.2.180.0120.00316.87
8.2.170.0110.00422.96
8.2.160.0070.00720.48
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00021.38
8.2.110.0090.00022.32
8.2.100.0120.00018.03
8.2.90.0040.00419.42
8.2.80.0060.00318.18
8.2.70.0060.00317.63
8.2.60.0040.00418.18
8.2.50.0090.00018.07
8.2.40.0000.00918.34
8.2.30.0060.00318.23
8.2.20.0040.00417.83
8.2.10.0050.00318.03
8.2.00.0040.00417.88
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0000.00824.17
8.1.230.0110.00019.29
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00717.60
8.1.190.0030.00717.65
8.1.180.0050.00318.10
8.1.170.0080.00018.77
8.1.160.0000.00722.24
8.1.150.0080.00018.84
8.1.140.0000.00717.69
8.1.130.0000.00818.04
8.1.120.0000.00717.64
8.1.110.0040.00417.76
8.1.100.0040.00417.77
8.1.90.0000.00717.63
8.1.80.0080.00017.63
8.1.70.0000.00717.70
8.1.60.0000.00917.82
8.1.50.0040.00417.60
8.1.40.0000.00717.67
8.1.30.0030.00617.84
8.1.20.0060.00317.75
8.1.10.0030.00617.82
8.1.00.0030.00617.75
8.0.300.0040.00418.77
8.0.290.0070.00017.43
8.0.280.0030.00518.61
8.0.270.0000.00717.53
8.0.260.0070.00017.04
8.0.250.0040.00417.21
8.0.240.0040.00417.11
8.0.230.0030.00517.10
8.0.220.0070.00017.02
8.0.210.0040.00417.17
8.0.200.0040.00417.15
8.0.190.0050.00217.08
8.0.180.0040.00417.03
8.0.170.0040.00417.21
8.0.160.0040.00416.99
8.0.150.0070.00017.16
8.0.140.0040.00416.94
8.0.130.0050.00013.63
8.0.120.0040.00417.15
8.0.110.0040.00416.98
8.0.100.0000.00717.07
8.0.90.0040.00417.16
8.0.80.0110.00617.14
8.0.70.0040.00417.18
8.0.60.0040.00417.18
8.0.50.0000.00817.15
8.0.30.0060.01517.32
8.0.20.0110.01017.56
8.0.10.0040.00417.06
8.0.00.0130.01016.90
7.4.330.0050.00015.29
7.4.320.0060.00016.84
7.4.300.0000.00616.83
7.4.290.0030.00316.92
7.4.280.0040.00416.74
7.4.270.0030.00316.70
7.4.260.0040.00416.89
7.4.250.0040.00416.64
7.4.240.0020.00516.86
7.4.230.0000.00716.59
7.4.220.0070.01116.75
7.4.210.0080.00816.83
7.4.200.0080.00016.83
7.4.190.0000.00716.56
7.4.160.0060.01016.61
7.4.150.0040.01417.40
7.4.140.0110.00917.86
7.4.130.0070.01116.88
7.4.120.0100.01116.88
7.4.110.0120.00616.70
7.4.100.0150.00316.77
7.4.90.0140.00516.74
7.4.80.0170.00716.79
7.4.70.0100.00616.76
7.4.60.0070.01016.66
7.4.50.0040.00416.76
7.4.40.0110.00822.77
7.4.30.0040.01216.71
7.4.00.0100.00715.37
7.3.330.0030.00313.45
7.3.320.0000.00613.45
7.3.310.0070.00016.69
7.3.300.0030.00316.59
7.3.290.0110.00316.61
7.3.280.0090.00816.62
7.3.270.0150.00917.40
7.3.260.0090.00916.91
7.3.250.0120.01216.77
7.3.240.0060.01016.82
7.3.230.0120.00616.80
7.3.210.0130.00416.66
7.3.200.0070.01419.39
7.3.190.0110.00616.56
7.3.180.0030.01316.86
7.3.170.0000.01616.57
7.3.160.0120.00916.73
7.3.120.0140.00315.18
7.3.10.0070.00716.47
7.3.00.0090.00416.69
7.2.330.0110.00817.09
7.2.320.0140.00316.73
7.2.310.0170.00316.63
7.2.300.0030.01417.06
7.2.290.0070.01016.73
7.2.130.0110.00617.06
7.2.120.0100.01017.00
7.2.110.0070.01017.29
7.2.100.0110.00017.06
7.2.90.0070.00716.75
7.2.80.0060.00617.19
7.2.70.0070.01017.34
7.2.60.0060.00317.01
7.2.50.0070.01117.02
7.2.40.0100.00717.17
7.2.30.0100.00017.24
7.2.20.0000.00917.21
7.2.10.0040.01216.99
7.2.00.0060.00818.20
7.1.250.0030.00915.85
7.1.240.0130.00016.09
7.1.230.0040.00715.71
7.1.220.0030.01215.58
7.1.210.0030.01015.82
7.1.200.0090.01115.78
7.1.190.0030.00916.07
7.1.180.0040.00715.84
7.1.170.0090.00315.87
7.1.160.0070.00715.78
7.1.150.0040.01215.79
7.1.140.0080.00815.95
7.1.130.0060.00315.84
7.1.120.0060.00915.85
7.1.110.0060.00315.86
7.1.100.0030.01415.69
7.1.90.0070.01015.97
7.1.80.0070.01015.88
7.1.70.0090.00216.43
7.1.60.0000.01016.67
7.1.50.0120.01425.30
7.1.40.0060.00615.85
7.1.30.0170.00315.91
7.1.20.0140.00415.70
7.1.10.0030.00615.71
7.1.00.0080.03919.33
7.0.330.0090.00615.59
7.0.320.0060.00915.30
7.0.310.0090.00615.48
7.0.300.0130.00715.54
7.0.290.0060.00615.24
7.0.280.0100.01015.69
7.0.270.0090.00615.68
7.0.260.0130.00615.44
7.0.250.0060.00915.62
7.0.240.0100.00615.59
7.0.230.0170.00715.50
7.0.220.0130.00415.21
7.0.210.0080.01215.51
7.0.200.0100.00816.21
7.0.190.0110.00415.67
7.0.180.0100.00715.62
7.0.170.0190.00015.57
7.0.160.0100.00715.57
7.0.150.0170.00315.61
7.0.140.0150.03718.88
7.0.130.0070.01015.76
7.0.120.0100.01015.36
7.0.110.0040.01515.62
7.0.100.0100.00715.52
7.0.90.0160.00615.71
7.0.80.0030.01015.65
7.0.70.0060.00915.50
7.0.60.0070.02717.83
7.0.50.0100.04316.79
7.0.40.0090.04517.04
7.0.30.0310.02517.06
7.0.20.0140.02517.00
7.0.10.0100.02216.86
7.0.00.0080.03716.87
5.6.380.0150.00314.53
5.6.370.0120.00414.41
5.6.360.0080.00414.38
5.6.350.0140.00714.63
5.6.340.0120.00614.27
5.6.330.0120.00614.32
5.6.320.0070.00714.42
5.6.310.0040.01114.65
5.6.300.0130.00314.38
5.6.290.0060.00914.72
5.6.280.0090.04017.70
5.6.270.0130.00614.39
5.6.260.0120.00614.13
5.6.250.0110.00614.52
5.6.240.0110.00414.59
5.6.230.0100.00314.34
5.6.220.0000.01814.16
5.6.210.0110.03017.52
5.6.200.0120.04516.32
5.6.190.0050.03817.43
5.6.180.0230.02217.68
5.6.170.0210.04317.50
5.6.160.0110.04617.35
5.6.150.0080.03016.42
5.6.140.0070.04516.36
5.6.130.0110.04316.22
5.6.120.0090.02317.64
5.6.110.0230.04017.61
5.6.100.0060.03817.69
5.6.90.0130.04317.82
5.6.80.0130.04217.55
5.6.70.0090.00914.11
5.6.60.0070.01114.69
5.6.50.0030.01614.44
5.6.40.0080.01114.30
5.6.30.0070.01014.59
5.6.20.0070.01014.40
5.6.10.0120.00414.62
5.6.00.0120.00314.18
5.5.380.0040.01111.13
5.5.370.0090.00911.18
5.5.360.0140.00011.43
5.5.350.0120.04815.91
5.5.340.0120.04014.59
5.5.330.0030.02716.00
5.5.320.0100.04215.77
5.5.310.0180.04115.93
5.5.300.0150.04014.68
5.5.290.0140.04314.59
5.5.280.0080.04616.09
5.5.270.0080.04215.95
5.5.260.0090.04115.97
5.5.250.0070.02616.03
5.5.240.0190.03515.81
5.5.230.0080.00411.23
5.5.220.0030.01311.32
5.5.210.0080.00811.21
5.5.200.0040.00811.39
5.5.190.0060.00911.18
5.5.180.0160.00010.98
5.5.170.0090.00911.42
5.5.160.0070.00711.27
5.5.150.0070.01010.86
5.5.140.0110.00011.27
5.5.130.0070.00710.89
5.5.120.0070.00711.19
5.5.110.0100.00711.14
5.5.100.0130.00711.07
5.5.90.0120.00311.09
5.5.80.0110.00711.01
5.5.70.0100.00311.18
5.5.60.0100.00611.30
5.5.50.0090.00311.29
5.5.40.0120.00411.16
5.5.30.0070.00711.07
5.5.20.0090.00311.43
5.5.10.0120.00811.43
5.5.00.0070.01111.38
5.4.450.0060.04815.26
5.4.440.0110.03715.40
5.4.430.0060.04615.22
5.4.420.0080.04215.20
5.4.410.0080.02815.35
5.4.400.0070.03915.12
5.4.390.0100.03415.06
5.4.380.0070.04315.31
5.4.370.0110.03615.10
5.4.360.0100.04015.04
5.4.350.0080.03015.07
5.4.340.0080.04715.13
5.4.330.0070.00710.91
5.4.320.0030.04515.21
5.4.310.0130.03315.15
5.4.300.0050.03214.97
5.4.290.0060.04615.17
5.4.280.0090.04215.04
5.4.270.0130.03715.31
5.4.260.0080.03015.12
5.4.250.0070.03015.17
5.4.240.0150.03215.20
5.4.230.0080.04215.25
5.4.220.0070.03515.11
5.4.210.0070.02315.17
5.4.200.0080.04015.23
5.4.190.0020.03815.23
5.4.180.0110.03315.29
5.4.170.0070.03314.99
5.4.160.0030.04815.19
5.4.150.0080.03015.18
5.4.140.0080.03013.81
5.4.130.0050.04513.73
5.4.120.0080.03213.66
5.4.110.0130.02413.77
5.4.100.0070.03513.86
5.4.90.0030.03813.84
5.4.80.0080.02714.03
5.4.70.0060.02013.67
5.4.60.0100.01813.95
5.4.50.0050.02113.92
5.4.40.0070.02113.82
5.4.30.0100.02213.88
5.4.20.0040.02413.77
5.4.10.0060.02113.74
5.4.00.0070.01813.48
5.3.290.0030.03212.74
5.3.280.0100.04112.65
5.3.270.0120.03812.79
5.3.260.0110.04012.69
5.3.250.0070.03212.70
5.3.240.0160.02512.68
5.3.230.0140.03812.61
5.3.220.0120.02712.63
5.3.210.0050.03612.68
5.3.200.0090.02512.63
5.3.190.0050.02812.47
5.3.180.0090.03212.58
5.3.170.0070.03912.57
5.3.160.0030.02412.73
5.3.150.0050.02712.67
5.3.140.0070.01812.66
5.3.130.0040.02412.61
5.3.120.0080.02012.62
5.3.110.0070.02312.59
5.3.100.0050.02112.39
5.3.90.0040.02412.28
5.3.80.0050.02212.33
5.3.70.0050.02212.28
5.3.60.0050.02112.35
5.3.50.0050.02012.27
5.3.40.0040.02312.30
5.3.30.0070.01712.39
5.3.20.0050.02812.26
5.3.10.0060.02312.11
5.3.00.0080.02212.15
5.2.170.0030.02511.57
5.2.160.0020.02011.57
5.2.150.0050.01711.57
5.2.140.0100.01311.57
5.2.130.0060.01811.57
5.2.120.0020.02111.57
5.2.110.0050.01711.57
5.2.100.0070.01411.57
5.2.90.0060.01611.57
5.2.80.0060.02011.57
5.2.70.0000.01911.57
5.2.60.0050.02011.57
5.2.50.0080.01311.57
5.2.40.0050.02011.57
5.2.30.0070.01811.57
5.2.20.0040.01711.57
5.2.10.0070.01511.57
5.2.00.0060.01811.57
5.1.60.0090.01311.57
5.1.50.0040.01711.57
5.1.40.0030.01611.57
5.1.30.0040.01711.57
5.1.20.0050.01311.57
5.1.10.0080.01111.57
5.1.00.0050.01511.57
5.0.50.0020.01411.57
5.0.40.0070.01111.57
5.0.30.0010.01811.57
5.0.20.0030.01311.57
5.0.10.0060.01011.57
5.0.00.0060.01711.57
4.4.90.0020.00811.57
4.4.80.0030.00711.57
4.4.70.0010.00811.57
4.4.60.0000.00911.57
4.4.50.0020.00811.57
4.4.40.0070.01011.57
4.4.30.0000.00811.57
4.4.20.0020.00811.57
4.4.10.0000.01011.57
4.4.00.0000.01511.57
4.3.110.0000.00911.57
4.3.100.0030.00611.57
4.3.90.0030.00811.57
4.3.80.0020.02611.57
4.3.70.0000.02211.57
4.3.60.0000.02011.57
4.3.50.0060.01511.57
4.3.40.0000.03211.57
4.3.30.0000.02211.57
4.3.20.0030.01811.57
4.3.10.0030.02011.57
4.3.00.0000.02211.57

preferences:
52.62 ms | 401 KiB | 5 Q