3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <MembershipCardLists> <MembershipCardInfo> <CardNo>8898990000000083</CardNo> </MembershipCardInfo> <MembershipCardInfo> <CardNo>8898000000000260</CardNo> </MembershipCardInfo> </MembershipCardLists> /*<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.0070.00716.98
8.3.50.0100.01223.01
8.3.40.0120.00619.01
8.3.30.0120.00619.29
8.3.20.0040.00420.46
8.3.10.0080.00020.89
8.3.00.0050.00319.63
8.2.180.0080.00817.00
8.2.170.0000.01822.96
8.2.160.0000.01420.50
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00621.07
8.2.110.0040.00422.32
8.2.100.0110.00418.03
8.2.90.0040.00419.23
8.2.80.0030.00617.97
8.2.70.0030.00617.61
8.2.60.0040.00418.05
8.2.50.0030.00618.07
8.2.40.0040.00418.34
8.2.30.0050.00219.75
8.2.20.0080.00017.88
8.2.10.0080.00018.15
8.2.00.0060.00318.00
8.1.280.0150.00325.92
8.1.270.0030.00624.09
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00024.05
8.1.230.0040.00819.29
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0000.01117.50
8.1.190.0060.00317.60
8.1.180.0040.00418.10
8.1.170.0030.00618.90
8.1.160.0000.00822.07
8.1.150.0040.00419.23
8.1.140.0000.00717.68
8.1.130.0030.00318.13
8.1.120.0000.00817.49
8.1.110.0040.00417.66
8.1.100.0040.00417.64
8.1.90.0000.00717.64
8.1.80.0000.00717.54
8.1.70.0050.00217.48
8.1.60.0030.00617.66
8.1.50.0000.00817.75
8.1.40.0060.00317.74
8.1.30.0060.00317.88
8.1.20.0040.00417.76
8.1.10.0000.00817.66
8.1.00.0030.00517.66
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.62
8.0.270.0000.00717.40
8.0.260.0020.00517.49
8.0.250.0000.00717.16
8.0.240.0040.00417.09
8.0.230.0080.00017.27
8.0.220.0050.00217.10
8.0.210.0040.00417.13
8.0.200.0040.00417.11
8.0.190.0040.00417.16
8.0.180.0000.00817.15
8.0.170.0080.00017.13
8.0.160.0000.00717.05
8.0.150.0040.00416.93
8.0.140.0040.00416.97
8.0.130.0000.00513.60
8.0.120.0080.00317.20
8.0.110.0050.00217.12
8.0.100.0080.00017.17
8.0.90.0000.00717.00
8.0.80.0090.00617.09
8.0.70.0030.00517.13
8.0.60.0030.00517.00
8.0.50.0070.00017.10
8.0.30.0080.01017.47
8.0.20.0090.01017.40
8.0.10.0000.00717.16
8.0.00.0050.01216.88
7.4.330.0050.00015.39
7.4.320.0000.00616.64
7.4.300.0030.00316.80
7.4.290.0040.00416.72
7.4.280.0030.00616.79
7.4.270.0040.00416.71
7.4.260.0060.00616.77
7.4.250.0070.00016.67
7.4.240.0040.00416.77
7.4.230.0000.00716.71
7.4.220.0140.00616.80
7.4.210.0110.00316.61
7.4.200.0070.00016.66
7.4.160.0130.00316.81
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0110.00616.74
7.4.120.0090.00916.81
7.4.110.0050.01416.57
7.4.100.0130.01016.63
7.4.90.0090.00616.74
7.4.80.0070.01419.39
7.4.70.0060.01016.64
7.4.60.0060.01016.77
7.4.50.0000.00916.61
7.4.40.0140.00416.73
7.4.30.0110.01116.68
7.4.10.0100.01015.07
7.4.00.0090.00915.18
7.3.330.0030.00313.53
7.3.320.0030.00313.30
7.3.310.0000.00816.30
7.3.300.0000.00716.43
7.3.290.0100.01016.52
7.3.280.0110.00616.50
7.3.270.0070.01017.40
7.3.260.0180.00016.76
7.3.250.0120.00816.55
7.3.240.0090.00916.53
7.3.230.0130.00316.43
7.3.210.0120.00616.45
7.3.200.0070.01319.39
7.3.190.0130.00916.53
7.3.180.0060.00916.47
7.3.170.0080.01316.74
7.3.160.0100.00716.51
7.3.130.0100.00714.83
7.3.120.0130.00714.93
7.3.110.0060.00614.89
7.3.100.0030.01214.84
7.3.90.0090.00614.87
7.3.80.0120.00614.64
7.3.70.0090.00614.89
7.3.60.0040.01214.70
7.3.50.0140.00314.63
7.3.40.0030.01014.66
7.3.30.0110.00414.82
7.3.20.0030.01416.78
7.3.10.0060.01216.52
7.3.00.0000.01316.58
7.2.330.0100.00716.86
7.2.320.0090.00916.81
7.2.310.0090.00916.72
7.2.300.0190.00316.88
7.2.290.0030.01616.53
7.2.260.0100.01015.12
7.2.250.0070.00714.94
7.2.240.0040.01115.09
7.2.230.0100.00714.90
7.2.220.0060.01214.79
7.2.210.0000.01215.28
7.2.200.0030.00815.03
7.2.190.0070.01114.95
7.2.180.0060.00914.98
7.2.170.0030.00814.80
7.2.160.0110.00414.89
7.2.150.0030.01216.73
7.2.140.0100.00317.06
7.2.130.0060.00916.93
7.2.120.0000.01416.91
7.2.110.0090.00616.82
7.2.100.0000.01016.73
7.2.90.0070.00717.05
7.2.80.0110.00416.70
7.2.70.0000.01417.15
7.2.60.0100.00717.00
7.2.50.0040.01216.96
7.2.40.0030.00616.91
7.2.30.0000.01516.84
7.2.20.0040.00816.75
7.2.10.0060.00616.86
7.2.00.0060.00616.90
7.1.330.0060.00816.02
7.1.320.0080.00815.51
7.1.310.0000.01315.60
7.1.300.0060.00915.45
7.1.290.0090.00615.82
7.1.280.0070.00715.69
7.1.270.0030.01315.92
7.1.260.0080.00015.64
7.1.250.0090.00315.69
7.1.240.0060.00615.79
7.1.230.0030.01415.87
7.1.220.0030.00615.68
7.1.210.0070.00715.51
7.1.200.0090.00415.80
7.1.190.0000.00915.59
7.1.180.0070.00715.79
7.1.170.0060.00615.87
7.1.160.0000.00915.57
7.1.150.0030.00715.61
7.1.140.0030.00915.58
7.1.130.0040.00415.75
7.1.120.0000.01115.86
7.1.110.0000.01215.75
7.1.100.0140.00517.07
7.1.90.0130.00315.74
7.1.80.0100.00315.94
7.1.70.0020.00816.41
7.1.60.0100.00317.68
7.1.50.0060.01016.56
7.1.40.0090.00615.78
7.1.30.0030.00615.68
7.1.20.0060.00315.74
7.1.10.0030.00615.86
7.1.00.0060.03619.14
7.0.330.0000.01215.38
7.0.320.0060.00615.54
7.0.310.0030.01015.53
7.0.300.0000.00915.49
7.0.290.0070.00715.48
7.0.280.0060.00615.47
7.0.270.0030.01015.20
7.0.260.0030.01015.46
7.0.250.0030.01415.54
7.0.240.0090.00615.34
7.0.230.0070.00715.59
7.0.220.0060.00615.38
7.0.210.0040.00815.57
7.0.200.0030.00815.94
7.0.190.0040.00415.49
7.0.180.0000.01415.43
7.0.170.0100.00315.74
7.0.160.0100.00315.57
7.0.150.0030.01015.59
7.0.140.0050.04918.81
7.0.130.0030.00515.57
7.0.120.0000.01415.40
7.0.110.0080.00415.46
7.0.100.0030.00615.71
7.0.90.0060.00615.36
7.0.80.0030.01015.63
7.0.70.0070.00715.48
7.0.60.0100.03917.74
7.0.50.0070.02816.75
7.0.40.0120.02316.84
7.0.30.0190.02116.85
7.0.20.0150.04516.84
7.0.10.0030.02616.79
7.0.00.0050.02516.88
5.6.400.0040.00714.22
5.6.390.0050.00514.34
5.6.380.0090.00614.24
5.6.370.0060.00614.30
5.6.360.0120.00614.45
5.6.350.0070.01114.63
5.6.340.0050.00514.18
5.6.330.0100.00614.21
5.6.320.0100.00314.16
5.6.310.0060.00614.66
5.6.300.0100.00314.26
5.6.290.0110.00314.18
5.6.280.0000.04317.56
5.6.270.0120.00314.30
5.6.260.0070.01014.16
5.6.250.0070.00714.34
5.6.240.0030.01414.38
5.6.230.0000.01614.40
5.6.220.0060.00914.25
5.6.210.0110.03817.28
5.6.200.0080.03416.26
5.6.190.0080.04717.50
5.6.180.0200.04517.65
5.6.170.0200.04017.52
5.6.160.0040.02417.52
5.6.150.0070.04216.34
5.6.140.0070.02716.18
5.6.130.0080.04216.29
5.6.120.0060.02617.79
5.6.110.0110.03517.53
5.6.100.0050.04917.76
5.6.90.0080.02217.73
5.6.80.0100.04017.54
5.6.70.0030.00614.24
5.6.60.0070.00714.05
5.6.50.0100.00714.17
5.6.40.0030.00714.21
5.6.30.0030.00914.24
5.6.20.0070.01014.15
5.6.10.0090.00314.60
5.6.00.0030.00714.32
5.5.380.0060.00314.16
5.5.370.0000.01414.19
5.5.360.0090.00614.34
5.5.350.0120.02817.22
5.5.340.0100.03016.18
5.5.330.0150.03817.46
5.5.320.0250.03017.23
5.5.310.0170.03017.28
5.5.300.0080.03416.11
5.5.290.0090.04416.07
5.5.280.0080.02617.40
5.5.270.0060.04517.53
5.5.260.0020.02617.59
5.5.250.0030.04617.35
5.5.240.0160.02317.11
5.5.230.0070.00714.14
5.5.220.0140.00014.19
5.5.210.0030.00614.12
5.5.200.0030.01014.02
5.5.190.0140.00014.05
5.5.180.0030.01013.92
5.5.170.0070.00413.99
5.5.160.0130.00014.10
5.5.150.0060.00314.25
5.5.140.0000.01314.20
5.5.130.0030.01314.21
5.5.120.0030.01014.22
5.5.110.0030.01014.03
5.5.100.0060.00614.22
5.5.90.0060.00614.06
5.5.80.0070.00414.23
5.5.70.0000.01713.97
5.5.60.0030.01014.03
5.5.50.0080.00014.13
5.5.40.0030.00914.23
5.5.30.0070.00713.89
5.5.20.0090.00614.25
5.5.10.0000.01314.01
5.5.00.0040.01214.35
5.4.450.0200.02815.68
5.4.440.0100.02615.63
5.4.430.0240.02615.67
5.4.420.0180.02515.59
5.4.410.0200.02515.65
5.4.400.0130.02315.55
5.4.390.0230.02015.57
5.4.380.0120.04115.17
5.4.370.0240.02615.28
5.4.360.0190.03315.16
5.4.350.0190.03215.28
5.4.340.0170.03515.34
5.4.330.0030.01011.81
5.4.320.0060.02112.23
5.4.310.0040.02412.23
5.4.300.0040.02212.23
5.4.290.0060.02812.23
5.4.280.0060.02412.18
5.4.270.0050.02312.18
5.4.260.0060.02512.18
5.4.250.0110.03412.18
5.4.240.0070.02212.18
5.4.230.0070.02412.17
5.4.220.0030.02812.17
5.4.210.0080.02512.17
5.4.200.0080.01912.17
5.4.190.0060.02512.17
5.4.180.0080.02212.17
5.4.170.0020.02612.18
5.4.160.0040.02112.17
5.4.150.0080.01812.17
5.4.140.0050.02212.01
5.4.130.0040.02212.01
5.4.120.0050.01911.99
5.4.110.0050.02211.98
5.4.100.0030.02211.98
5.4.90.0060.02111.98
5.4.80.0050.02111.99
5.4.70.0070.02011.98
5.4.60.0070.02211.98
5.4.50.0050.02511.98
5.4.40.0060.02811.97
5.4.30.0050.02311.97
5.4.20.0060.02411.97
5.4.10.0060.02011.97
5.4.00.0060.02011.72
5.3.290.0060.04012.91
5.3.280.0040.04012.84
5.3.270.0100.03612.85
5.3.260.0050.04012.84
5.3.250.0040.03912.84
5.3.240.0090.03312.84
5.3.230.0040.03912.83
5.3.220.0070.03612.80
5.3.210.0070.03712.80
5.3.200.0040.03812.80
5.3.190.0050.03812.80
5.3.180.0040.04312.80
5.3.170.0050.03912.80
5.3.160.0070.04112.80
5.3.150.0110.04612.80
5.3.140.0070.04212.79
5.3.130.0060.04112.79
5.3.120.0050.05212.79
5.3.110.0090.04412.78
5.3.100.0080.03512.27
5.3.90.0030.03912.25
5.3.80.0050.03812.25
5.3.70.0060.03612.25
5.3.60.0100.03112.23
5.3.50.0050.03712.18
5.3.40.0050.04312.18
5.3.30.0070.04812.14
5.3.20.0030.04011.93
5.3.10.0090.03311.89
5.3.00.0080.03511.88
5.2.170.0080.0289.38
5.2.160.0050.0299.37
5.2.150.0030.0329.38
5.2.140.0090.0279.37
5.2.130.0040.0309.33
5.2.120.0100.0239.33
5.2.110.0050.0289.33
5.2.100.0040.0299.32
5.2.90.0090.0249.33
5.2.80.0090.0279.32
5.2.70.0040.0329.32
5.2.60.0080.0329.27
5.2.50.0070.0329.25
5.2.40.0070.0279.22
5.2.30.0020.0369.20
5.2.20.0040.0299.22
5.2.10.0050.0289.13
5.2.00.0040.0298.98
5.1.60.0040.0248.27
5.1.50.0040.0258.27
5.1.40.0030.0268.25
5.1.30.0050.0298.60
5.1.20.0070.0258.62
5.1.10.0060.0248.34
5.1.00.0050.0258.34
5.0.50.0060.0236.81
5.0.40.0060.0216.67
5.0.30.0030.0316.49
5.0.20.0010.0226.46
5.0.10.0010.0226.44
5.0.00.0050.0296.43
4.4.90.0020.0164.78
4.4.80.0040.0154.75
4.4.70.0040.0144.76
4.4.60.0040.0144.75
4.4.50.0030.0154.77
4.4.40.0030.0294.71
4.4.30.0040.0174.76
4.4.20.0010.0194.84
4.4.10.0040.0204.85
4.4.00.0020.0274.76
4.3.110.0010.0184.66
4.3.100.0040.0144.66
4.3.90.0040.0144.64
4.3.80.0040.0234.59
4.3.70.0000.0174.63
4.3.60.0040.0154.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0040.0133.31
4.3.20.0020.0163.29
4.3.10.0060.0173.24
4.3.00.0030.01718.16

preferences:
48.33 ms | 401 KiB | 5 Q