3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <ResponseXML> <MembershipCardLists> <MembershipCardInfo> <CardNo>8898990000000083</CardNo> </MembershipCardInfo> <MembershipCardInfo> <CardNo>8898000000000260</CardNo> </MembershipCardInfo> </MembershipCardLists> </ResponseXML> /*<items> <hats> <a id="Chicago BULLS" img="bulls.jpeg" cost="$25.00" /> <b id="Toronto RAPTORS" img="raptors.jpeg" cost="$25.00" /> <c id="Orlando MAGIC" img="magic.jpeg" cost="$25.00" /> </hats> <clothes> <a id="Chicago BULLS 23" img="bullstee.jpeg" cost="$30.00" /> <b id="Toronto RAPTORS 23" img="torontotee.jpeg" cost="$30.00" /> <c id="Orlando MAGIC 23" img="magictee.jpeg" cost="$30.00" /> </clothes> </items>*/ XML; $xml = simplexml_load_string($x); foreach ($xml->children() as $name => $value) { echo "$name: <br />"; foreach ($value->children() as $item) { //echo "$item[id], $item[img], $item[cost]<br />"; } }

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.0120.00916.88
8.3.50.0150.00522.90
8.3.40.0110.00419.19
8.3.30.0040.01419.60
8.3.20.0070.00020.58
8.3.10.0030.00621.09
8.3.00.0000.00919.63
8.2.180.0140.00717.00
8.2.170.0070.00722.96
8.2.160.0070.00720.71
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00221.14
8.2.110.0060.00322.38
8.2.100.0110.00419.64
8.2.90.0000.00919.30
8.2.80.0060.00317.97
8.2.70.0030.00618.00
8.2.60.0000.00818.16
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0050.00219.65
8.2.20.0030.00517.98
8.2.10.0050.00218.45
8.2.00.0040.00418.04
8.1.280.0120.00625.92
8.1.270.0040.00424.09
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00624.16
8.1.230.0110.00019.48
8.1.220.0000.00817.91
8.1.210.0000.01018.77
8.1.200.0060.00617.35
8.1.190.0030.00517.35
8.1.180.0030.00618.10
8.1.170.0030.00618.84
8.1.160.0040.00422.17
8.1.150.0040.00419.20
8.1.140.0070.00017.69
8.1.130.0040.00418.04
8.1.120.0070.00017.64
8.1.110.0080.00017.66
8.1.100.0050.00217.51
8.1.90.0000.00717.51
8.1.80.0050.00217.73
8.1.70.0040.00417.66
8.1.60.0040.00417.88
8.1.50.0090.00017.69
8.1.40.0040.00417.66
8.1.30.0030.00617.99
8.1.20.0040.00417.73
8.1.10.0040.00417.77
8.1.00.0080.00017.61
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.61
8.0.270.0030.00517.40
8.0.260.0030.00317.56
8.0.250.0030.00317.31
8.0.240.0070.00017.05
8.0.230.0050.00217.16
8.0.220.0050.00317.14
8.0.210.0040.00416.98
8.0.200.0000.00817.21
8.0.190.0000.00717.21
8.0.180.0070.00017.14
8.0.170.0050.00317.16
8.0.160.0000.00817.02
8.0.150.0070.00017.08
8.0.140.0040.00416.96
8.0.130.0030.00313.53
8.0.120.0000.01017.04
8.0.110.0050.00316.95
8.0.100.0000.00717.07
8.0.90.0040.00416.95
8.0.80.0130.00317.13
8.0.70.0000.00816.96
8.0.60.0030.00616.98
8.0.50.0050.00317.23
8.0.30.0070.01317.32
8.0.20.0080.01117.46
8.0.10.0030.00517.28
8.0.00.0140.00517.00
7.4.330.0000.00515.38
7.4.320.0040.00416.78
7.4.300.0030.00316.77
7.4.290.0030.00316.81
7.4.280.0070.00016.78
7.4.270.0030.00316.88
7.4.260.0070.00316.83
7.4.250.0000.00716.77
7.4.240.0000.00716.71
7.4.230.0030.00316.68
7.4.220.0090.01216.84
7.4.210.0070.00716.73
7.4.200.0000.00716.85
7.4.160.0030.01216.82
7.4.150.0030.01617.40
7.4.140.0030.01517.86
7.4.130.0090.01016.80
7.4.120.0110.00716.79
7.4.110.0070.01016.67
7.4.100.0070.01116.60
7.4.90.0110.01016.54
7.4.80.0030.01319.39
7.4.70.0070.01016.70
7.4.60.0170.00016.67
7.4.50.0080.00016.79
7.4.40.0120.00816.91
7.4.30.0130.00316.79
7.4.00.0000.01214.94
7.3.330.0050.00313.22
7.3.320.0050.00013.30
7.3.310.0030.00316.41
7.3.300.0030.00316.45
7.3.290.0060.01016.51
7.3.280.0070.01116.54
7.3.270.0100.01417.40
7.3.260.0160.00616.68
7.3.250.0120.00616.68
7.3.240.0110.00716.55
7.3.230.0170.00016.46
7.3.210.0040.01216.58
7.3.200.0060.01019.39
7.3.190.0070.01016.57
7.3.180.0070.01016.58
7.3.170.0180.00016.69
7.3.160.0120.00616.84
7.2.330.0140.00416.77
7.2.320.0060.00916.93
7.2.310.0120.00916.69
7.2.300.0070.01016.79
7.2.290.0170.00616.59
7.2.60.0180.01116.71
7.1.200.0060.01015.77
7.1.70.0020.00516.93
7.1.60.0090.00619.61
7.1.50.0070.01717.11
7.1.00.0100.07022.44
7.0.200.0000.00916.51
7.0.140.0130.06022.12
7.0.60.0030.09019.86
7.0.50.0000.04317.96
7.0.40.0100.08719.98
7.0.30.0170.05020.26
7.0.20.0200.05020.25
7.0.10.0070.07020.32
7.0.00.0000.06320.29
5.6.280.0030.07021.00
5.6.210.0070.05320.81
5.6.200.0100.08018.26
5.6.190.0030.04320.56
5.6.180.0130.05720.34
5.6.170.0270.05320.64
5.6.160.0270.03720.57
5.6.150.0070.03318.30
5.6.140.0000.04318.38
5.6.130.0070.07318.21
5.6.120.0030.05021.04
5.6.110.0200.07321.18
5.6.100.0100.07321.04
5.6.90.0070.08721.02
5.6.80.0070.03720.42
5.6.70.4200.04020.36
5.5.350.0230.07020.53
5.5.340.0070.03718.16
5.5.330.0130.06720.32
5.5.320.0330.08020.48
5.5.310.0200.05320.51
5.5.300.0030.04318.12
5.5.290.0130.08018.20
5.5.280.0130.06720.87
5.5.270.0030.04320.76
5.5.260.0100.08020.98
5.5.250.0070.08320.72
5.5.240.0200.06320.32
5.4.450.0330.04019.55
5.4.440.0900.04019.62
5.4.430.0470.03319.45
5.4.420.0230.04319.39
5.4.410.0370.04719.48
5.4.400.0170.03019.32
5.4.390.0200.03319.28
5.4.380.0300.05318.81
5.4.370.0330.05718.76
5.4.360.0500.05318.75
5.4.350.0330.06018.91
5.4.340.0430.05018.82
5.4.320.0060.03612.64
5.4.310.0050.04012.64
5.4.300.0030.04012.64
5.4.290.0040.04012.64
5.4.280.0040.03812.54
5.4.270.0090.03312.54
5.4.260.0070.03712.54
5.4.250.0060.03812.54
5.4.240.0060.03512.54
5.4.230.0090.03912.53
5.4.220.0070.03612.53
5.4.210.0040.03712.53
5.4.200.0070.03612.53
5.4.190.0070.03512.53
5.4.180.0080.03412.53
5.4.170.0080.03412.54
5.4.160.0080.03512.54
5.4.150.0060.03512.53
5.4.140.0090.03412.21
5.4.130.0060.03612.20
5.4.120.0070.03412.16
5.4.110.0070.03412.16
5.4.100.0070.03512.15
5.4.90.0030.03912.16
5.4.80.0060.03612.15
5.4.70.0060.03412.15
5.4.60.0070.03312.15
5.4.50.0080.03412.15
5.4.40.0070.03312.13
5.4.30.0090.03312.14
5.4.20.0080.03312.13
5.4.10.0050.03612.13
5.4.00.0040.03811.63
5.3.290.0060.03912.91
5.3.280.0040.04012.83
5.3.270.0090.03712.84
5.3.260.0060.04012.84
5.3.250.0050.03812.84
5.3.240.0090.03512.84
5.3.230.0080.03712.84
5.3.220.0030.04112.80
5.3.210.0090.03512.80
5.3.200.0080.03512.80
5.3.190.0080.03712.80
5.3.180.0110.03212.80
5.3.170.0070.03612.80
5.3.160.0050.03912.80
5.3.150.0060.03812.80
5.3.140.0100.03212.79
5.3.130.0070.03812.78
5.3.120.0070.03812.79
5.3.110.0060.03912.78
5.3.100.0080.03512.27
5.3.90.0060.03412.26
5.3.80.0060.03612.25
5.3.70.0020.03912.25
5.3.60.0040.03712.23
5.3.50.0040.03812.18
5.3.40.0070.03612.18
5.3.30.0050.03412.14
5.3.20.0050.03511.93
5.3.10.0060.03411.88
5.3.00.0050.03611.87
5.2.170.0080.0279.38
5.2.160.0090.0249.37
5.2.150.0050.0309.38
5.2.140.0030.0329.37
5.2.130.0080.0259.33
5.2.120.0050.0279.33
5.2.110.0050.0289.33
5.2.100.0060.0279.32
5.2.90.0080.0309.33
5.2.80.0080.0369.32
5.2.70.0060.0409.32
5.2.60.0090.0389.28
5.2.50.0040.0419.25
5.2.40.0050.0379.22
5.2.30.0050.0399.20
5.2.20.0050.0369.22
5.2.10.0050.0279.13
5.2.00.0030.0308.98
5.1.60.0020.0268.27
5.1.50.0050.0238.27
5.1.40.0040.0248.26
5.1.30.0030.0288.60
5.1.20.0040.0268.62
5.1.10.0050.0278.34
5.1.00.0050.0248.34
5.0.50.0020.0216.82
5.0.40.0030.0196.68
5.0.30.0020.0336.50
5.0.20.0030.0216.46
5.0.10.0030.0206.44
5.0.00.0040.0306.43
4.4.90.0050.0134.78
4.4.80.0020.0164.75
4.4.70.0040.0144.75
4.4.60.0010.0174.75
4.4.50.0020.0214.77
4.4.40.0030.0334.71
4.4.30.0040.0194.75
4.4.20.0010.0224.85
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0010.0184.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0020.0244.58
4.3.70.0030.0144.63
4.3.60.0000.0184.62
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0030.0153.31
4.3.20.0020.0163.29
4.3.10.0050.0133.25
4.3.00.0100.01718.16

preferences:
39.15 ms | 401 KiB | 5 Q