3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '<root> <Formula> <formulaname attr="1.0">Basic</formulaname> <movespeed>1</movespeed> <box>4</box> <chicken>3</chicken> <ducks> <duck>test1</duck> <duck a="b">test2</duck> <duck>test3</duck> </ducks> <cereal>2</cereal> </Formula> </root>'; $xml = simplexml_load_string($s); $arr = (array) $xml; $newArr = (array)$arr['Formula']; $it = new SimpleXMLIterator($arr['Formula']->ducks); var_dump($arr['Formula']->ducks, $it->next());

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.0160.00318.68
8.3.50.0120.00722.17
8.3.40.0070.01419.21
8.3.30.0140.00019.32
8.3.20.0040.00420.67
8.3.10.0060.00322.26
8.3.00.0080.00020.94
8.2.180.0060.01017.13
8.2.170.0040.01122.96
8.2.160.0070.00719.06
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0080.00019.48
8.2.110.0070.00320.73
8.2.100.0060.00619.95
8.2.90.0040.00419.42
8.2.80.0040.00418.18
8.2.70.0040.00418.00
8.2.60.0040.00418.30
8.2.50.0040.00418.07
8.2.40.0040.00418.59
8.2.30.0040.00418.33
8.2.20.0030.00518.08
8.2.10.0000.00818.07
8.2.00.0030.00618.06
8.1.280.0120.00625.92
8.1.270.0080.00022.43
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0080.00023.95
8.1.230.0070.00419.38
8.1.220.0050.00317.82
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0030.00517.66
8.1.180.0050.00318.83
8.1.170.0000.00818.78
8.1.160.0040.00422.32
8.1.150.0030.00518.79
8.1.140.0030.00617.59
8.1.130.0000.00718.08
8.1.120.0000.00717.53
8.1.110.0040.00417.48
8.1.100.0000.00817.55
8.1.90.0040.00417.49
8.1.80.0000.00717.76
8.1.70.0000.00617.57
8.1.60.0050.00317.68
8.1.50.0000.00817.68
8.1.40.0040.00417.55
8.1.30.0030.00517.66
8.1.20.0000.00817.96
8.1.10.0040.00417.84
8.1.00.0040.00417.82
8.0.300.0050.00318.77
8.0.290.0000.00717.28
8.0.280.0000.00718.51
8.0.270.0000.00717.48
8.0.260.0030.00317.02
8.0.250.0030.00317.10
8.0.240.0040.00317.18
8.0.230.0050.00217.05
8.0.220.0000.00716.99
8.0.210.0000.00717.16
8.0.200.0060.00017.21
8.0.190.0040.00417.06
8.0.180.0040.00417.13
8.0.170.0020.00517.05
8.0.160.0030.00517.16
8.0.150.0000.00716.99
8.0.140.0000.00717.18
8.0.130.0050.00013.65
8.0.120.0030.00617.10
8.0.110.0040.00417.07
8.0.100.0000.00717.01
8.0.90.0000.00717.00
8.0.80.0030.01317.19
8.0.70.0000.00817.13
8.0.60.0080.00017.02
8.0.50.0000.00717.18
8.0.30.0110.01217.43
8.0.20.0100.00917.43
8.0.10.0000.00717.28
8.0.00.0070.01116.95
7.4.330.0050.00015.00
7.4.320.0030.00316.74
7.4.300.0030.00716.68
7.4.290.0070.00016.69
7.4.280.0030.00316.90
7.4.270.0000.00716.72
7.4.260.0090.00016.85
7.4.250.0040.00416.59
7.4.240.0040.00316.61
7.4.230.0040.00416.83
7.4.220.0090.00916.75
7.4.210.0110.00516.83
7.4.200.0030.00316.91
7.4.190.0000.00716.84
7.4.160.0120.01216.82
7.4.150.0130.01017.40
7.4.140.0120.00917.86
7.4.130.0140.00716.72
7.4.120.0130.00516.84
7.4.110.0090.00916.70
7.4.100.0070.01116.64
7.4.90.0220.02416.87
7.4.80.0140.00319.39
7.4.70.0110.00816.86
7.4.60.0100.01316.76
7.4.50.0040.00416.71
7.4.40.0060.00922.77
7.4.30.0110.00616.57
7.4.00.0110.00615.22
7.3.330.0000.00513.43
7.3.320.0000.00813.39
7.3.310.0030.00616.68
7.3.300.0000.00716.65
7.3.290.0100.00316.60
7.3.280.0100.00516.65
7.3.270.0060.01117.40
7.3.260.0110.00716.56
7.3.250.0060.01416.63
7.3.240.0090.01216.68
7.3.230.0140.00416.54
7.3.210.0180.00016.75
7.3.200.0160.00619.39
7.3.190.0040.01416.83
7.3.180.0080.00816.86
7.3.170.0060.01216.64
7.3.160.0070.01316.68
7.3.120.0100.00814.99
7.3.110.0120.00614.97
7.3.100.0030.00615.19
7.3.90.0000.00914.97
7.3.80.0060.00914.94
7.3.70.0000.01014.92
7.3.60.0030.01014.95
7.3.50.0000.01514.98
7.3.40.0030.00614.89
7.3.30.0120.00314.55
7.3.20.0100.00716.80
7.3.10.0020.01316.83
7.3.00.0020.01116.82
7.2.330.0110.00816.88
7.2.320.0120.01216.83
7.2.310.0090.01016.90
7.2.300.0120.00616.64
7.2.290.0060.01216.97
7.2.250.0030.01215.18
7.2.240.0070.01415.42
7.2.230.0070.01014.93
7.2.220.0000.01115.18
7.2.210.0120.00314.92
7.2.200.0030.01315.04
7.2.190.0060.00614.98
7.2.180.0070.00715.23
7.2.170.0060.00614.93
7.2.130.0040.01217.09
7.2.120.0070.01116.89
7.2.110.0080.00416.99
7.2.100.0030.01017.11
7.2.90.0080.00816.82
7.2.80.0070.00317.03
7.2.70.0090.00917.16
7.2.60.0050.00717.11
7.2.50.0070.00717.03
7.2.40.0040.00717.09
7.2.30.0030.01217.11
7.2.20.0030.00917.13
7.2.10.0070.01117.34
7.2.00.0070.00717.04
7.1.330.0070.00715.65
7.1.320.0030.00615.83
7.1.310.0100.00315.93
7.1.300.0000.01415.84
7.1.290.0120.00015.78
7.1.280.0030.01015.91
7.1.270.0060.00615.61
7.1.260.0000.01515.74
7.1.250.0050.00316.10
7.1.200.0060.00916.04
7.1.70.0040.00817.46
7.1.60.0140.01019.82
7.1.50.0160.00717.02
7.1.00.0030.08722.38
7.0.200.0050.00317.02
7.0.140.0030.07722.13
7.0.100.0100.04720.02
7.0.90.0070.08720.02
7.0.80.0070.05720.23
7.0.70.0100.08019.96
7.0.60.0100.07720.13
7.0.50.0000.05020.29
7.0.40.0130.05020.07
7.0.30.0100.08320.10
7.0.20.0100.03720.18
7.0.10.0070.08320.08
7.0.00.0070.04720.07
5.6.280.0000.07721.02
5.6.250.0070.08020.54
5.6.240.0070.08320.72
5.6.230.0000.09320.64
5.6.220.0030.05720.69
5.6.210.0130.07720.70
5.6.200.0000.05321.29
5.6.190.0100.10021.27
5.6.180.0200.07021.12
5.6.170.0100.08321.20
5.6.160.0130.07321.13
5.6.150.0100.07320.99
5.6.140.0070.05021.11
5.6.130.0070.08321.20
5.6.120.0130.08321.18
5.6.110.0030.08321.28
5.6.100.0100.04321.18
5.6.90.0000.06321.13
5.6.80.0170.07020.56
5.6.70.0100.07720.48
5.6.60.0130.07020.53
5.6.50.0170.04720.39
5.6.40.0100.07720.51
5.6.30.0070.04320.50
5.6.20.0030.04720.35
5.6.10.0100.08020.60
5.6.00.0100.08020.61
5.5.380.0130.07720.53
5.5.370.0170.06720.45
5.5.360.0000.09320.61
5.5.350.0130.04020.57
5.5.340.0100.06021.01
5.5.330.0130.07021.00
5.5.320.0170.07320.96
5.5.310.0100.08320.81
5.5.300.0070.08020.74
5.5.290.0100.07720.96
5.5.280.0130.08020.97
5.5.270.0100.07720.84
5.5.260.0100.08020.87
5.5.250.0100.03720.59
5.5.240.0070.06720.42
5.5.230.0070.07020.26
5.5.220.0130.07720.14
5.5.210.0070.06320.25
5.5.200.0070.06320.34
5.5.190.0130.07720.14
5.5.180.0070.08320.13
5.5.160.0100.06320.38
5.5.150.0100.07320.26
5.5.140.0100.07320.20
5.5.130.0100.04020.09
5.5.120.0100.07720.31
5.5.110.0100.07720.30
5.5.100.0100.05020.21
5.5.90.0070.07720.26
5.5.80.0230.04020.29
5.5.70.0100.06020.30
5.5.60.0100.07320.07
5.5.50.0030.06320.20
5.5.40.0030.04720.11
5.5.30.0170.05320.25
5.5.20.0230.05720.00
5.5.10.0070.06720.05
5.5.00.0170.07320.06
5.4.450.0030.04719.57
5.4.440.0130.07019.52
5.4.430.0100.07319.35
5.4.420.0030.08319.60
5.4.410.0070.06319.23
5.4.400.0030.04719.12
5.4.390.0130.05019.01
5.4.380.0000.08719.21
5.4.370.0100.05719.25
5.4.360.0100.07319.28
5.4.350.0070.06719.08
5.4.340.0070.05719.21
5.4.320.0200.06719.25
5.4.310.0100.07019.35
5.4.300.0030.08019.20
5.4.290.0070.07019.25
5.4.280.0100.07019.13
5.4.270.0100.04319.26
5.4.260.0070.04718.99
5.4.250.0070.04318.95
5.4.240.0070.07319.22
5.4.230.0030.07319.11
5.4.220.0070.07018.95
5.4.210.0070.07319.10
5.4.200.0030.08019.20
5.4.190.0100.05719.10
5.4.180.0070.07319.31
5.4.170.0130.06319.25
5.4.160.0030.06018.99
5.4.150.0030.08318.93
5.4.140.0100.06016.59
5.4.130.0030.03716.61
5.4.120.0100.04716.59
5.4.110.0170.07016.57
5.4.100.0000.08016.59
5.4.90.0070.04016.57
5.4.80.0170.06716.59
5.4.70.0130.05316.63
5.4.60.0030.04316.62
5.4.50.0070.07316.57
5.4.40.0070.07016.57
5.4.30.0030.06716.61
5.4.20.0030.04316.56
5.4.10.0100.04316.57
5.4.00.0070.04015.98
5.3.290.0100.06715.00
5.3.280.0130.06315.00
5.3.270.0030.06715.00
5.3.260.0070.07315.00
5.3.250.0030.08015.00
5.3.240.0070.04015.00
5.3.230.0030.04015.00
5.3.220.0070.05015.00
5.3.210.0100.05715.00
5.3.200.0000.08015.00
5.3.190.0100.08015.00
5.3.180.0100.03715.00
5.3.170.0030.07715.00
5.3.160.0070.04015.00
5.3.150.0070.03315.00
5.3.140.0030.04715.00
5.3.130.0070.07015.00
5.3.120.0100.03715.00
5.3.110.0130.04315.00
5.3.100.0100.07015.00
5.3.90.0130.03715.00
5.3.80.0030.04015.00
5.3.70.0100.07715.00
5.3.60.0100.04315.00
5.3.50.0130.07015.00
5.3.40.0030.08015.00
5.3.30.0000.07715.00
5.3.20.0070.06315.00
5.3.10.0130.06315.00
5.3.00.0070.04315.00
5.2.170.0070.06015.00
5.2.160.0100.05315.00
5.2.150.0070.04715.00
5.2.140.0000.07015.00
5.2.130.0030.06315.00
5.2.120.0100.02715.00
5.2.110.0070.03315.00
5.2.100.0070.05015.00
5.2.90.0030.05715.00
5.2.80.0100.05715.00
5.2.70.0030.05315.00
5.2.60.0100.06015.00
5.2.50.0130.04715.00
5.2.40.0070.06015.00
5.2.30.0070.05715.00
5.2.20.0030.03315.00
5.2.10.0000.04715.00
5.2.00.0100.02715.00
5.1.60.0030.02315.00
5.1.50.0070.04015.00
5.1.40.0100.04715.00
5.1.30.0100.05015.00
5.1.20.0070.05715.00
5.1.10.0070.03315.00
5.1.00.0030.03315.00
5.0.50.0000.04715.00
5.0.40.0030.04315.00
5.0.30.0100.06015.00
5.0.20.0070.02015.00
5.0.10.0030.03015.00
5.0.00.0100.02715.00
4.4.90.0030.02715.00
4.4.80.0030.02315.00
4.4.70.0000.02015.00
4.4.60.0000.02015.00
4.4.50.0030.03015.00
4.4.40.0030.04715.00
4.4.30.0070.01315.00
4.4.20.0070.03315.00
4.4.10.0000.03315.00
4.4.00.0030.05315.00
4.3.110.0000.02015.00
4.3.100.0000.02015.00
4.3.90.0000.02715.00
4.3.80.0030.02715.00
4.3.70.0030.03715.00
4.3.60.0030.03315.00
4.3.50.0000.02015.00
4.3.40.0000.04315.00
4.3.30.0000.02715.00
4.3.20.0030.03015.00
4.3.10.0000.01715.00
4.3.00.0000.02015.00

preferences:
38.59 ms | 401 KiB | 5 Q