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); foreach ($obj as $key => $value) { var_dump($key, $value); }

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.0130.01316.59
8.3.50.0080.00816.47
8.3.40.0110.01119.05
8.3.30.0060.01018.79
8.3.20.0030.00618.69
8.3.10.0040.00420.66
8.3.00.0090.00017.63
8.2.180.0040.01116.88
8.2.170.0220.00022.96
8.2.160.0060.01222.38
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0120.00326.16
8.2.120.0030.00520.08
8.2.110.0110.00021.18
8.2.100.0120.00018.03
8.2.90.0000.00819.48
8.2.80.0000.00818.18
8.2.70.0000.00817.74
8.2.60.0080.00018.18
8.2.50.0000.00818.07
8.2.40.0050.00318.28
8.2.30.0040.00418.28
8.2.20.0020.00517.79
8.2.10.0050.00317.99
8.2.00.0040.00417.98
8.1.280.0090.00625.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.64
8.1.230.0040.00821.15
8.1.220.0050.00318.77
8.1.210.0000.00819.09
8.1.200.0030.00617.47
8.1.190.0060.00317.64
8.1.180.0040.00418.10
8.1.170.0000.00719.09
8.1.160.0070.00019.12
8.1.150.0040.00418.91
8.1.140.0000.00817.68
8.1.130.0000.00718.05
8.1.120.0000.00717.59
8.1.110.0050.00317.59
8.1.100.0020.00517.58
8.1.90.0000.00717.62
8.1.80.0000.00817.58
8.1.70.0030.00317.68
8.1.60.0000.00817.73
8.1.50.0020.00517.73
8.1.40.0050.00317.64
8.1.30.0020.00517.95
8.1.20.0000.00817.92
8.1.10.0040.00417.68
8.1.00.0040.00417.59
8.0.300.0040.00420.07
8.0.290.0050.00216.88
8.0.280.0030.00318.65
8.0.270.0030.00317.42
8.0.260.0000.00717.01
8.0.250.0070.00017.17
8.0.240.0060.00617.24
8.0.230.0040.00417.10
8.0.220.0000.00717.14
8.0.210.0040.00416.93
8.0.200.0000.00617.13
8.0.190.0000.00717.03
8.0.180.0070.00017.21
8.0.170.0000.00917.20
8.0.160.0070.00017.02
8.0.150.0040.00417.14
8.0.140.0070.00417.16
8.0.130.0050.00313.51
8.0.120.0070.00317.08
8.0.110.0000.00717.05
8.0.100.0040.00417.16
8.0.90.0040.00417.18
8.0.80.0110.00717.05
8.0.70.0030.00516.97
8.0.60.0070.00017.18
8.0.50.0040.00417.07
8.0.30.0100.01017.30
8.0.20.0110.01017.26
8.0.10.0030.00517.17
8.0.00.0160.00217.09
7.4.330.0050.00013.30
7.4.320.0060.00016.74
7.4.300.0020.00516.72
7.4.290.0000.00716.69
7.4.280.0030.00616.73
7.4.270.0020.00516.75
7.4.260.0060.00013.49
7.4.250.0040.00416.91
7.4.240.0000.00716.86
7.4.230.0040.00416.81
7.4.220.0070.01616.77
7.4.210.0090.00616.82
7.4.200.0040.00416.82
7.4.190.0040.00416.88
7.4.160.0080.00816.54
7.4.150.0100.01316.82
7.4.140.0100.00916.69
7.4.130.0070.01016.86
7.4.120.0090.01316.69
7.4.110.0000.02316.76
7.4.100.0060.01216.55
7.4.90.0190.00816.79
7.4.80.0150.00916.53
7.4.70.0030.01516.70
7.4.60.0170.00016.62
7.4.50.0050.00316.82
7.4.40.0000.01316.69
7.4.30.0200.00316.87
7.4.00.0080.00614.97
7.3.330.0060.00013.34
7.3.320.0000.00713.41
7.3.310.0040.00416.33
7.3.300.0000.00716.50
7.3.290.0070.01016.48
7.3.280.0110.00716.50
7.3.270.0180.00316.48
7.3.260.0130.00416.72
7.3.250.0170.00616.53
7.3.240.0060.01216.46
7.3.230.0140.00816.70
7.3.210.0070.01416.52
7.3.200.0110.00619.39
7.3.190.0120.00916.50
7.3.180.0030.01516.34
7.3.170.0070.01416.80
7.3.160.0080.00816.36
7.3.120.0090.00314.85
7.2.330.0100.01016.90
7.2.320.0090.01316.70
7.2.310.0150.00616.74
7.2.300.0070.01116.90
7.2.290.0000.01716.84
7.2.00.0040.01119.62
7.1.200.0060.00615.84
7.1.100.0060.00618.14
7.1.70.0000.01017.10
7.1.60.0060.01919.40
7.1.50.0160.00617.05
7.1.00.0100.06022.44
7.0.200.0000.01017.02
7.0.140.0070.07322.08
7.0.120.0030.07022.13
7.0.110.0130.03720.13
7.0.100.0000.04320.13
7.0.90.0070.04020.04
7.0.80.0030.06320.02
7.0.70.0200.04719.98
7.0.60.0030.04320.27
7.0.50.0070.03720.37
7.0.40.0100.07320.09
7.0.30.0100.04320.41
7.0.20.0170.02720.36
7.0.10.0100.03320.28
7.0.00.0030.04320.07
5.6.280.0000.07721.02
5.6.260.0000.05020.73
5.6.250.0070.04320.73
5.6.240.0070.04020.71
5.6.230.0070.07020.73
5.6.220.0030.04320.63
5.6.210.0000.04320.66
5.6.200.0070.04321.31
5.6.190.0130.03721.24
5.6.180.0030.04021.07
5.6.170.0070.03721.38
5.6.160.0070.04021.39
5.6.150.0000.04321.13
5.6.140.0030.04721.13
5.6.130.0070.04021.23
5.6.120.0130.03321.04
5.6.110.0100.04021.29
5.6.100.0070.08321.18
5.6.90.0070.05720.98
5.6.80.0100.08020.38
5.6.70.0100.07320.55
5.6.60.0100.06720.76
5.6.50.0070.08020.38
5.6.40.0200.04020.61
5.6.30.0130.06720.50
5.6.20.0130.07320.73
5.6.10.0070.08720.54
5.6.00.0070.07720.35
5.5.380.0000.05020.46
5.5.370.0130.06020.61
5.5.360.0030.04020.48
5.5.350.0030.05020.49
5.5.340.0030.04320.77
5.5.330.0030.06321.03
5.5.320.0070.05321.04
5.5.310.0070.03720.92
5.5.300.0070.04320.79
5.5.290.0030.04021.03
5.5.280.0030.04320.93
5.5.270.0100.06020.77
5.5.260.0130.07720.74
5.5.250.0100.08020.94
5.5.240.0100.07320.30
5.5.230.0130.07020.44
5.5.220.0030.08320.38
5.5.210.0070.05020.20
5.5.200.0070.07020.39
5.5.190.0000.08320.21
5.5.180.0130.07320.30
5.5.160.0070.08720.41
5.5.150.0100.07320.14
5.5.140.0130.07020.35
5.5.130.0130.07720.32
5.5.120.0100.06720.35
5.5.110.0130.07720.35
5.5.100.0100.07320.05
5.5.90.0170.06320.19
5.5.80.0200.06720.02
5.5.70.0070.07020.12
5.5.60.0130.06320.13
5.5.50.0000.08320.18
5.5.40.0100.05720.14
5.5.30.0170.07720.35
5.5.20.0130.07020.16
5.5.10.0130.07020.21
5.5.00.0100.07320.21
5.4.450.0030.04019.35
5.4.440.0030.04019.61
5.4.430.0070.07019.38
5.4.420.0070.06019.65
5.4.410.0070.07019.37
5.4.400.0070.07319.07
5.4.390.0100.05019.29
5.4.380.0100.07319.02
5.4.370.0230.05319.16
5.4.360.0100.06719.34
5.4.350.0070.07019.07
5.4.340.0100.07319.08
5.4.320.0100.08319.22
5.4.310.0170.07019.07
5.4.300.0030.07719.09
5.4.290.0070.06019.07
5.4.280.0130.06019.08
5.4.270.0170.06719.15
5.4.260.0100.06719.24
5.4.250.0030.06319.01
5.4.240.0100.04319.30
5.4.230.0100.07719.16
5.4.220.0130.07719.05
5.4.210.0030.07319.07
5.4.200.0070.07719.20
5.4.190.0130.07319.09
5.4.180.0230.06019.20
5.4.170.0100.07719.04
5.4.160.0000.05019.06
5.4.150.0030.08019.15
5.4.140.0100.07316.35
5.4.130.0030.07716.38
5.4.120.0030.03716.61
5.4.110.0100.07316.25
5.4.100.0000.07716.43
5.4.90.0070.07016.56
5.4.80.0070.07716.31
5.4.70.0070.07016.48
5.4.60.0100.04016.30
5.4.50.0130.03716.33
5.4.40.0030.04316.50
5.4.30.0130.03316.28
5.4.20.0070.07016.50
5.4.10.0130.06716.46
5.4.00.0030.07716.05
5.3.290.0100.07714.69
5.3.280.0030.08314.74
5.3.270.0000.08714.70
5.3.260.0070.07314.70
5.3.250.0030.08314.75
5.3.240.0070.07014.65
5.3.230.0030.05714.69
5.3.220.0130.05014.60
5.3.210.0070.03314.67
5.3.200.0030.07314.62
5.3.190.0100.07714.66
5.3.180.0100.07714.61
5.3.170.0100.04014.71
5.3.160.0100.07314.72
5.3.150.0100.08014.66
5.3.140.0100.06714.70
5.3.130.0130.07014.72
5.3.120.0130.06014.52
5.3.110.0130.07014.60
5.3.100.0170.06014.17
5.3.90.0000.08014.04
5.3.80.0030.05013.99
5.3.70.0000.07314.08
5.3.60.0100.07014.00
5.3.50.0170.06013.96
5.3.40.0030.06713.94
5.3.30.0100.07013.91
5.3.20.0000.08013.71
5.3.10.0030.07013.74
5.3.00.0030.06713.62
5.2.170.0130.05312.89
5.2.160.0170.05312.89
5.2.150.0130.05312.89
5.2.140.0030.05712.89
5.2.130.0070.05012.89
5.2.120.0030.03312.89
5.2.110.0030.05712.89
5.2.100.0100.06012.89
5.2.90.0070.05712.89
5.2.80.0100.05312.89
5.2.70.0070.05712.89
5.2.60.0070.05712.89
5.2.50.0070.04312.89
5.2.40.0000.06312.89
5.2.30.0030.05712.89
5.2.20.0000.03712.89
5.2.10.0070.03712.89
5.2.00.0070.05712.89
5.1.60.0030.04312.89
5.1.50.0030.05012.89
5.1.40.0030.05312.89
5.1.30.0030.05712.89
5.1.20.0100.05012.89
5.1.10.0070.04312.89
5.1.00.0100.04712.89
5.0.50.0070.04012.89
5.0.40.0100.02712.89
5.0.30.0000.03312.89
5.0.20.0070.03712.89
5.0.10.0030.04012.89
5.0.00.0000.06712.89
4.4.90.0030.03012.89
4.4.80.0000.03712.89
4.4.70.0000.03712.89
4.4.60.0000.02712.89
4.4.50.0000.01312.89
4.4.40.0030.04312.89
4.4.30.0000.03712.89
4.4.20.0000.01712.89
4.4.10.0030.01312.89
4.4.00.0000.06012.89
4.3.110.0030.03012.89
4.3.100.0000.03312.89
4.3.90.0000.03712.89
4.3.80.0030.03712.89
4.3.70.0030.03012.89
4.3.60.0030.03012.89
4.3.50.0070.02712.89
4.3.40.0000.05712.89
4.3.30.0030.03312.89
4.3.20.0030.03312.89
4.3.10.0000.03712.89
4.3.00.0030.03312.89

preferences:
47.28 ms | 400 KiB | 5 Q