3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="utf-8"?> <touhou xmlns:windows="http://example.com/windows" xmlns:alt="http://example.com/alt"> <game> <title lang="en">Highly Responsive to Prayers</title> <title lang="jp">東方靈異伝</title> </game> <game> <title lang="en">Story of Eastern Wonderland</title> <title lang="jp" alt:romaji="Tōhō Fūmaroku">東方封魔録</title> </game> <windows:game> <title lang="en">Embodiment of Scarlet Devil</title> <title lang="jp">東方紅魔郷</title> </windows:game> <windows:game> <title lang="en">Perfect Cherry Blossom</title> <title lang="jp">東方妖々夢</title> </windows:game> </touhou> XML; $result = json_decode(json_encode(new SimpleXMLElement($xml)), true); var_dump($result);

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.0110.00418.64
8.3.50.0100.01022.18
8.3.40.0090.00618.95
8.3.30.0070.01120.46
8.3.20.0080.00018.90
8.3.10.0000.00821.04
8.3.00.0000.00819.79
8.2.180.0120.00916.75
8.2.170.0050.01022.96
8.2.160.0030.01020.72
8.2.150.0000.00924.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.98
8.2.110.0100.00022.51
8.2.100.0090.00318.03
8.2.90.0040.00419.34
8.2.80.0040.00419.47
8.2.70.0050.00517.63
8.2.60.0040.00418.02
8.2.50.0030.00518.07
8.2.40.0030.00620.07
8.2.30.0040.00421.39
8.2.20.0040.00417.80
8.2.10.0040.00417.96
8.2.00.0030.00617.88
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00422.67
8.1.230.0080.00322.79
8.1.220.0050.00318.77
8.1.210.0040.00419.12
8.1.200.0060.00317.23
8.1.190.0030.00517.65
8.1.180.0000.00818.10
8.1.170.0080.00018.72
8.1.160.0040.00419.03
8.1.150.0040.00418.84
8.1.140.0060.00317.55
8.1.130.0040.00418.05
8.1.120.0030.00717.70
8.1.110.0040.00417.68
8.1.100.0000.00717.62
8.1.90.0040.00417.50
8.1.80.0040.00417.55
8.1.70.0030.00317.54
8.1.60.0030.00617.83
8.1.50.0050.00317.53
8.1.40.0060.00317.71
8.1.30.0050.00317.84
8.1.20.0000.00817.88
8.1.10.0000.00817.59
8.1.00.0000.00717.58
8.0.300.0000.00820.02
8.0.290.0040.00417.30
8.0.280.0000.00718.59
8.0.270.0020.00517.47
8.0.260.0000.00817.10
8.0.250.0070.00017.07
8.0.240.0030.00617.07
8.0.230.0070.00017.06
8.0.220.0000.00817.13
8.0.210.0070.00017.12
8.0.200.0000.00717.02
8.0.190.0080.00017.23
8.0.180.0070.00016.98
8.0.170.0040.00416.98
8.0.160.0000.00817.16
8.0.150.0040.00417.01
8.0.140.0080.00017.16
8.0.130.0000.00613.62
8.0.120.0000.00817.09
8.0.110.0000.00716.89
8.0.100.0040.00417.13
8.0.90.0000.00717.22
8.0.80.0060.01617.03
8.0.70.0080.00017.22
8.0.60.0040.00417.13
8.0.50.0040.00417.16
8.0.30.0090.01217.35
8.0.20.0150.00517.47
8.0.10.0000.00817.23
8.0.00.0140.00616.90
7.4.330.0060.00016.96
7.4.320.0040.00416.74
7.4.300.0030.00316.73
7.4.290.0040.00416.63
7.4.280.0030.00316.66
7.4.270.0000.00716.70
7.4.260.0000.00513.53
7.4.250.0080.00016.66
7.4.240.0000.00716.74
7.4.230.0000.00816.57
7.4.220.0090.00916.75
7.4.210.0080.00816.72
7.4.200.0000.00716.68
7.4.190.0070.00016.82
7.4.160.0100.00716.45
7.4.150.0100.00717.40
7.4.140.0130.01017.86
7.4.130.0050.01216.67
7.4.120.0140.00316.65
7.4.110.0130.01016.70
7.4.100.0040.01616.54
7.4.90.0100.00716.54
7.4.80.0090.01219.39
7.4.70.0090.00616.50
7.4.60.0090.00916.58
7.4.50.0030.00616.53
7.4.40.0070.00722.77
7.4.30.0090.00916.75
7.4.00.0130.00514.99
7.3.330.0000.00513.05
7.3.320.0030.00313.21
7.3.310.0040.00416.50
7.3.300.0030.00316.48
7.3.290.0160.01216.43
7.3.280.0100.00816.41
7.3.270.0070.01117.40
7.3.260.0150.00818.24
7.3.250.0100.01116.44
7.3.240.0160.00016.71
7.3.230.0100.01316.39
7.3.210.0070.01016.58
7.3.200.0100.00619.39
7.3.190.0080.01116.51
7.3.180.0070.01016.47
7.3.170.0140.00816.52
7.3.160.0100.01016.41
7.3.120.0050.01214.81
7.3.110.0070.01014.89
7.3.100.0110.00414.96
7.3.90.0040.00714.48
7.3.80.0030.01015.05
7.3.70.0000.01414.88
7.3.60.0060.00914.69
7.3.50.0110.00414.63
7.3.40.0100.00314.45
7.3.30.0040.00814.82
7.3.20.0110.00416.43
7.3.10.0060.00916.73
7.3.00.0100.00316.43
7.2.330.0030.01516.48
7.2.320.0100.01316.86
7.2.310.0060.01616.44
7.2.300.0110.01116.72
7.2.290.0050.01116.85
7.2.250.0090.00914.87
7.2.240.0100.00715.13
7.2.230.0060.01014.98
7.2.220.0000.01015.00
7.2.210.0040.00814.90
7.2.200.0060.00615.27
7.2.190.0060.00915.02
7.2.180.0030.01314.99
7.2.170.0000.01414.85
7.2.60.0070.00716.93
7.2.00.0210.00319.44
7.1.330.0120.00315.64
7.1.320.0030.01015.68
7.1.310.0000.01415.69
7.1.300.0050.00515.80
7.1.290.0030.01015.68
7.1.280.0000.01315.65
7.1.270.0030.00715.93
7.1.260.0030.01315.75
7.1.200.0130.00015.80
7.1.100.0060.00618.15
7.1.70.0000.00817.12
7.1.60.0140.01019.24
7.1.50.0000.01617.04
7.1.00.0000.03722.55
7.0.200.0030.00316.64
7.0.140.0030.07322.03
7.0.90.0630.07319.91
7.0.80.0500.07320.02
7.0.70.0570.07719.95
7.0.60.0330.06019.93
7.0.50.0530.05020.41
7.0.40.0030.09320.20
7.0.30.0100.04320.27
7.0.20.0070.05320.04
7.0.10.0100.08020.18
7.0.00.0070.08020.04
5.6.280.0000.07320.96
5.6.240.0170.07020.55
5.6.230.0070.08020.79
5.6.220.0070.04720.88
5.6.210.0070.08720.85
5.6.200.0130.08021.17
5.6.190.0000.07321.15
5.6.180.0070.04321.16
5.6.170.0130.08021.19
5.6.160.0070.06021.10
5.6.150.0130.07720.94
5.6.140.0030.05021.12
5.6.130.0000.08721.09
5.6.120.0030.04721.13
5.6.110.0070.05721.12
5.6.100.0070.04721.09
5.6.90.0030.05321.12
5.6.80.0030.04320.36
5.6.70.0170.07720.48
5.6.60.0130.07720.50
5.6.50.0030.06320.55
5.6.40.0070.08020.62
5.6.30.0130.08020.43
5.6.20.0170.07020.61
5.6.10.0070.05320.42
5.6.00.0130.07020.60
5.5.380.0030.05320.44
5.5.370.0130.07720.59
5.5.360.0100.08020.45
5.5.350.0100.06020.48
5.5.340.0000.07720.98
5.5.330.0030.07320.97
5.5.320.0070.07021.03
5.5.310.0200.05020.80
5.5.300.0130.08020.84
5.5.290.0130.07321.04
5.5.280.0030.04320.82
5.5.270.0130.04020.87
5.5.260.0070.04321.00
5.5.250.0070.04720.62
5.5.240.0100.07320.39
5.5.230.0030.08720.22
5.5.220.0070.05020.36
5.5.210.0000.08720.27
5.5.200.0070.04720.38
5.5.190.0070.08720.40
5.5.180.0100.06320.39
5.5.160.0070.08020.19
5.5.150.0130.06320.28
5.5.140.0170.06720.38
5.5.130.0100.07020.23
5.5.120.0070.08020.37
5.5.110.0030.07320.36
5.5.100.0130.07020.25
5.5.90.0100.05720.08
5.5.80.0070.08020.09
5.5.70.0070.08720.10
5.5.60.0100.08020.04
5.5.50.0070.08020.27
5.5.40.0100.06720.13
5.5.30.0070.06020.08
5.5.20.0030.08320.13
5.5.10.0100.07320.19
5.5.00.0070.08020.08
5.4.450.0070.05319.53
5.4.440.0070.04319.52
5.4.430.0100.06719.51
5.4.420.0000.06319.52
5.4.410.0100.05019.36
5.4.400.0070.04019.25
5.4.390.0130.05319.11
5.4.380.0170.06719.14
5.4.370.0070.07319.21
5.4.360.0100.04719.36
5.4.350.0030.07719.19
5.4.340.0070.08019.21
5.4.320.0070.06019.21
5.4.310.0070.07319.18
5.4.300.0130.07019.20
5.4.290.0030.07319.01
5.4.280.0070.05018.86
5.4.270.0070.07019.05
5.4.260.0100.05019.12
5.4.250.0070.06019.02
5.4.240.0100.07019.01
5.4.230.0070.07719.16
5.4.220.0130.05719.36
5.4.210.0170.05019.36
5.4.200.0070.04319.19
5.4.190.0070.07319.36
5.4.180.0070.04319.19
5.4.170.0070.07319.09
5.4.160.0070.04019.20
5.4.150.0100.07319.06
5.4.140.0170.06716.49
5.4.130.0070.07716.41
5.4.120.0070.06016.47
5.4.110.0070.04016.51
5.4.100.0100.07316.47
5.4.90.0070.04716.57
5.4.80.0100.06716.49
5.4.70.0070.05016.42
5.4.60.0030.07716.53
5.4.50.0030.05716.37
5.4.40.0000.05316.41
5.4.30.0030.07316.50
5.4.20.0030.04316.56
5.4.10.0130.04316.48
5.4.00.0100.06015.79
5.3.290.0030.05014.61
5.3.280.0070.07714.53
5.3.270.0100.05714.54
5.3.260.0070.04714.76
5.3.250.0070.05314.75
5.3.240.0100.05314.70
5.3.230.0070.07014.75
5.3.220.0000.06014.69
5.3.210.0070.07314.65
5.3.200.0100.07014.68
5.3.190.0000.07714.67
5.3.180.0030.04714.71
5.3.170.0130.07014.63
5.3.160.0070.07314.64
5.3.150.0030.05714.46
5.3.140.0100.07014.66
5.3.130.0130.07014.59
5.3.120.0070.07014.66
5.3.110.0130.06014.59
5.3.100.0070.04714.18
5.3.90.0070.07313.93
5.3.80.0130.06314.08
5.3.70.0070.04714.07
5.3.60.0030.08013.93
5.3.50.0030.05014.07
5.3.40.0000.04714.11
5.3.30.0000.04714.04
5.3.20.0100.06713.85
5.3.10.0100.07013.77
5.3.00.0030.06713.67
5.2.170.0030.06311.32
5.2.160.0030.05311.24
5.2.150.0030.06011.21
5.2.140.0230.02311.23
5.2.130.0030.05311.14
5.2.120.0070.06010.99
5.2.110.0030.04311.24
5.2.100.0100.05311.28
5.2.90.0100.05311.25
5.2.80.0070.06311.16
5.2.70.0070.05311.15
5.2.60.0030.05711.24
5.2.50.0070.05010.95
5.2.40.0070.05011.14
5.2.30.0070.05311.02
5.2.20.0070.05711.13
5.2.10.0030.04711.10
5.2.00.0000.05010.85
5.1.60.0100.02710.02
5.1.50.0030.05310.02
5.1.40.0030.04310.03
5.1.30.0030.04010.42
5.1.20.0100.04710.41
5.1.10.0030.05710.08
5.1.00.0000.04010.08
5.0.50.0000.0438.62
5.0.40.0030.0438.31
5.0.30.0100.0608.25
5.0.20.0030.0438.22
5.0.10.0130.0278.03
5.0.00.0030.0608.04
4.4.90.0000.0337.13
4.4.80.0000.0377.13
4.4.70.0100.0177.13
4.4.60.0030.0307.13
4.4.50.0000.0277.13
4.4.40.0030.0507.13
4.4.30.0030.0337.13
4.4.20.0170.0177.13
4.4.10.0000.0237.13
4.4.00.0030.0507.13
4.3.110.0000.0307.13
4.3.100.0000.0337.13
4.3.90.0100.0277.13
4.3.80.0170.0437.13
4.3.70.0000.0307.13
4.3.60.0100.0277.13
4.3.50.0030.0337.13
4.3.40.0000.0437.13
4.3.30.0000.0337.13
4.3.20.0070.0237.13
4.3.10.0000.0307.13
4.3.00.0070.0207.13

preferences:
46.48 ms | 401 KiB | 5 Q