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>1</ducks> <cereal>2</cereal> </Formula> </root>'; $xml = simplexml_load_string($s); $arr = (array) $xml; $newArr = (array)$arr['Formula']; var_dump($newArr['formulaname'], $arr['Formula']->formulaname);

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.0100.01016.75
8.3.50.0090.00722.16
8.3.40.0040.01118.93
8.3.30.0150.00019.14
8.3.20.0040.00420.60
8.3.10.0000.00823.76
8.3.00.0090.00319.38
8.2.180.0150.00318.79
8.2.170.0060.00922.96
8.2.160.0130.00720.64
8.2.150.0120.00624.18
8.2.140.0150.00324.66
8.2.130.0110.00726.16
8.2.120.0030.00522.37
8.2.110.0110.00021.25
8.2.100.0040.00818.16
8.2.90.0060.00319.33
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0040.00418.15
8.2.50.0000.01018.07
8.2.40.0090.00018.47
8.2.30.0000.00918.50
8.2.20.0030.00617.92
8.2.10.0070.00018.30
8.2.00.0000.00718.03
8.1.280.0040.01125.92
8.1.270.0070.00724.09
8.1.260.0070.01126.35
8.1.250.0060.00328.09
8.1.240.0060.00321.54
8.1.230.0040.00817.64
8.1.220.0080.00017.78
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0080.00017.47
8.1.180.0030.00518.10
8.1.170.0030.00518.55
8.1.160.0040.00422.06
8.1.150.0040.00418.80
8.1.140.0070.00017.66
8.1.130.0000.00717.95
8.1.120.0030.00317.69
8.1.110.0030.00517.63
8.1.100.0040.00417.63
8.1.90.0030.00417.69
8.1.80.0000.00917.56
8.1.70.0000.00717.57
8.1.60.0030.00517.77
8.1.50.0040.00417.67
8.1.40.0000.00817.80
8.1.30.0040.00417.67
8.1.20.0030.00617.94
8.1.10.0030.00617.88
8.1.00.0030.00617.79
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0070.00018.59
8.0.270.0030.00317.41
8.0.260.0040.00417.00
8.0.250.0000.00617.01
8.0.240.0030.00617.14
8.0.230.0000.00717.17
8.0.220.0030.00317.05
8.0.210.0040.00417.09
8.0.200.0040.00417.11
8.0.190.0050.00217.18
8.0.180.0000.00717.09
8.0.170.0000.00817.02
8.0.160.0000.00716.95
8.0.150.0040.00417.08
8.0.140.0040.00416.98
8.0.130.0060.00013.55
8.0.120.0080.00016.90
8.0.110.0040.00417.07
8.0.100.0000.00817.09
8.0.90.0000.00717.05
8.0.80.0150.00616.91
8.0.70.0070.00017.07
8.0.60.0070.00317.05
8.0.50.0040.00416.86
8.0.30.0100.00817.15
8.0.20.0080.01117.53
8.0.10.0030.00617.29
8.0.00.0120.00616.95
7.4.330.0050.00215.00
7.4.320.0030.00316.73
7.4.300.0030.00316.79
7.4.290.0080.00016.74
7.4.280.0040.00416.80
7.4.270.0050.00216.82
7.4.260.0000.00716.83
7.4.250.0000.00716.60
7.4.240.0010.00616.82
7.4.230.0040.00416.89
7.4.220.0140.00616.83
7.4.210.0090.00716.80
7.4.200.0000.00816.67
7.4.190.0040.00416.86
7.4.160.0090.00616.67
7.4.150.0040.01317.40
7.4.140.0090.01217.86
7.4.130.0040.01316.77
7.4.120.0090.00816.67
7.4.110.0110.00816.64
7.4.100.0120.00616.84
7.4.90.0030.01316.60
7.4.80.0070.01119.39
7.4.70.0090.00916.61
7.4.60.0100.00716.50
7.4.50.0030.00316.55
7.4.40.0060.00922.77
7.4.30.0060.01516.91
7.4.00.0080.00515.41
7.3.330.0000.00513.44
7.3.320.0070.00013.45
7.3.310.0000.00716.55
7.3.300.0030.00316.53
7.3.290.0100.01016.44
7.3.280.0080.01116.51
7.3.270.0070.01117.40
7.3.260.0130.00716.79
7.3.250.0160.00116.48
7.3.240.0070.01116.76
7.3.230.0060.01116.81
7.3.210.0000.01716.66
7.3.200.0080.00819.39
7.3.190.0080.00816.79
7.3.180.0080.00816.55
7.3.170.0130.01016.63
7.3.160.0130.00316.83
7.3.120.0030.01415.02
7.2.330.0090.00916.57
7.2.320.0100.01016.93
7.2.310.0070.01016.81
7.2.300.0110.00516.67
7.2.290.0090.00916.79
7.2.00.0060.00619.33
7.1.100.0090.00317.88
7.1.70.0040.00417.43
7.1.60.0100.01619.33
7.1.50.0110.01417.20
7.1.00.0030.07322.38
7.0.200.0090.00616.71
7.0.140.0070.07022.13
7.0.100.0270.05721.80
7.0.90.0130.07320.13
7.0.80.0070.08320.00
7.0.70.0000.09320.17
7.0.60.0100.06320.13
7.0.50.0100.08020.48
7.0.40.0070.08020.11
7.0.30.0070.08320.05
7.0.20.0100.05020.14
7.0.10.0100.08020.12
7.0.00.0130.07720.22
5.6.280.0030.07021.17
5.6.250.0070.07020.63
5.6.240.0070.08320.68
5.6.230.0100.08020.66
5.6.220.0130.07320.66
5.6.210.0070.08020.60
5.6.200.0030.08021.16
5.6.190.0070.08321.09
5.6.180.0100.07721.18
5.6.170.0100.04721.06
5.6.160.0070.06321.13
5.6.150.0030.07721.15
5.6.140.0070.08321.12
5.6.130.0070.04321.15
5.6.120.0030.09320.98
5.6.110.0070.08021.13
5.6.100.0100.08021.07
5.6.90.0070.05321.13
5.6.80.0130.07020.60
5.6.70.0070.07720.45
5.6.60.0130.07720.42
5.6.50.0030.07020.54
5.6.40.0100.08020.59
5.6.30.0100.07020.64
5.6.20.0100.07020.48
5.6.10.0130.07720.44
5.6.00.0100.08020.60
5.5.380.0030.08320.61
5.5.370.0070.07720.44
5.5.360.0030.08320.42
5.5.350.0030.08720.50
5.5.340.0100.08020.91
5.5.330.0070.07020.88
5.5.320.0030.05320.97
5.5.310.0100.08321.01
5.5.300.0070.07020.88
5.5.290.0100.08020.84
5.5.280.0100.07720.95
5.5.270.0070.07720.82
5.5.260.0030.05720.96
5.5.250.0070.05020.55
5.5.240.0000.07720.31
5.5.230.0100.07020.21
5.5.220.0130.07320.36
5.5.210.0100.07320.24
5.5.200.0030.08320.35
5.5.190.0100.08320.33
5.5.180.0170.07020.21
5.5.160.0130.07720.33
5.5.150.0030.08020.18
5.5.140.0130.04320.12
5.5.130.0030.07720.19
5.5.120.0000.05320.29
5.5.110.0130.05320.29
5.5.100.0130.05720.15
5.5.90.0070.07720.27
5.5.80.0200.03720.11
5.5.70.0030.06720.13
5.5.60.0100.07320.07
5.5.50.0100.07020.22
5.5.40.0130.07020.09
5.5.30.0100.07020.23
5.5.20.0030.08720.24
5.5.10.0130.07720.18
5.5.00.0070.07020.18
5.4.450.0100.08319.70
5.4.440.0170.03719.44
5.4.430.0030.06719.53
5.4.420.0030.04719.52
5.4.410.0100.07019.41
5.4.400.0100.07019.25
5.4.390.0100.07019.18
5.4.380.0030.08319.16
5.4.370.0070.07719.11
5.4.360.0100.04719.21
5.4.350.0100.07318.89
5.4.340.0130.07019.16
5.4.320.0100.04319.21
5.4.310.0000.08719.17
5.4.300.0030.07319.16
5.4.290.0100.07019.17
5.4.280.0130.06719.13
5.4.270.0100.07319.22
5.4.260.0100.06718.88
5.4.250.0070.07719.16
5.4.240.0130.06719.16
5.4.230.0000.05019.09
5.4.220.0000.06018.88
5.4.210.0070.06719.19
5.4.200.0100.05018.87
5.4.190.0100.06019.15
5.4.180.0100.06718.89
5.4.170.0030.06319.36
5.4.160.0130.06719.16
5.4.150.0030.06718.88
5.4.140.0030.08016.41
5.4.130.0130.07016.56
5.4.120.0030.07716.24
5.4.110.0030.06716.54
5.4.100.0070.04316.35
5.4.90.0030.06716.52
5.4.80.0000.04016.53
5.4.70.0000.06316.52
5.4.60.0070.07016.49
5.4.50.0030.07316.44
5.4.40.0070.07016.38
5.4.30.0100.06316.44
5.4.20.0070.04016.38
5.4.10.0000.07316.48
5.4.00.0070.07016.00
5.3.290.0070.08014.56
5.3.280.0030.08014.52
5.3.270.0070.07714.73
5.3.260.0070.04314.65
5.3.250.0030.07714.70
5.3.240.0100.06014.72
5.3.230.0070.07314.72
5.3.220.0070.08014.66
5.3.210.0070.07314.70
5.3.200.0070.06714.64
5.3.190.0070.06014.46
5.3.180.0030.07714.60
5.3.170.0100.06314.61
5.3.160.0070.07314.49
5.3.150.0000.05014.48
5.3.140.0070.07714.63
5.3.130.0070.06714.61
5.3.120.0030.07314.58
5.3.110.0030.08014.46
5.3.100.0100.04713.96
5.3.90.0100.04313.93
5.3.80.0100.06714.09
5.3.70.0000.05014.08
5.3.60.0000.07014.13
5.3.50.0030.07714.02
5.3.40.0030.07713.77
5.3.30.0070.07013.98
5.3.20.0070.07313.79
5.3.10.0030.07313.77
5.3.00.0000.07013.49
5.2.170.0030.05711.23
5.2.160.0170.05311.24
5.2.150.0030.05011.34
5.2.140.0070.05011.18
5.2.130.0070.03311.00
5.2.120.0100.05711.14
5.2.110.0070.03011.24
5.2.100.0030.05311.27
5.2.90.0070.06011.20
5.2.80.0100.05711.28
5.2.70.0100.04711.28
5.2.60.0030.06011.12
5.2.50.0030.06710.95
5.2.40.0070.05311.09
5.2.30.0170.04711.15
5.2.20.0000.03710.95
5.2.10.0070.05711.04
5.2.00.0030.05710.87
5.1.60.0030.04010.09
5.1.50.0100.02310.09
5.1.40.0070.04710.17
5.1.30.0000.04710.46
5.1.20.0000.06010.48
5.1.10.0030.05310.22
5.1.00.0030.05710.25
5.0.50.0030.0478.63
5.0.40.0070.0338.53
5.0.30.0070.0438.15
5.0.20.0100.0238.27
5.0.10.0000.0478.32
5.0.00.0030.0638.32
4.4.90.0000.0378.07
4.4.80.0070.0308.07
4.4.70.0000.0308.07
4.4.60.0070.0338.07
4.4.50.0030.0278.07
4.4.40.0030.0508.07
4.4.30.0030.0278.07
4.4.20.0000.0338.07
4.4.10.0030.0338.07
4.4.00.0030.0278.07
4.3.110.0030.0308.07
4.3.100.0030.0238.07
4.3.90.0000.0378.07
4.3.80.0070.0438.07
4.3.70.0030.0238.07
4.3.60.0070.0308.07
4.3.50.0070.0308.07
4.3.40.0000.0508.07
4.3.30.0030.0338.07
4.3.20.0000.0308.07
4.3.10.0000.0308.07
4.3.00.0030.0208.07

preferences:
46.34 ms | 401 KiB | 5 Q