3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<< END <product> <ref>32332</ref> <name>Test 1</name> <features> <feature> <name>Feature 1</name> <value>Red</value> </feature> <feature> <name>Feature 2</name> <value>Large</value> </feature> </features> </product> END; $object = simplexml_load_string($xml); print_r(json_decode(json_encode($object), true));

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.4.120.0140.00620.73
8.4.110.0070.00422.40
8.4.100.0140.00717.86
8.4.90.0120.00820.41
8.4.80.0130.00619.08
8.4.70.0050.00517.84
8.4.60.0130.00817.45
8.4.50.0100.00918.11
8.4.40.0130.00717.93
8.4.30.0060.00320.69
8.4.20.0100.01017.75
8.4.10.0060.01226.19
8.3.250.0100.00818.78
8.3.240.0140.00616.80
8.3.230.0090.01116.64
8.3.220.0050.00418.87
8.3.210.0110.01016.85
8.3.200.0100.00816.76
8.3.190.0160.00716.68
8.3.180.0070.00416.62
8.3.170.0070.01116.66
8.3.160.0060.01216.95
8.3.150.0030.00619.00
8.3.140.0110.00720.71
8.3.130.0090.00018.38
8.3.120.0110.00018.94
8.3.110.0040.01120.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0040.00416.63
8.3.70.0150.00616.63
8.3.60.0110.00716.49
8.3.50.0140.00324.54
8.3.40.0140.00419.04
8.3.30.0130.00918.89
8.3.20.0140.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0090.00916.92
8.2.280.0050.00518.64
8.2.270.0120.00616.88
8.2.260.0000.00816.48
8.2.250.0110.00016.55
8.2.240.0040.00417.22
8.2.230.0110.00022.58
8.2.220.0040.00437.54
8.2.210.0060.01226.77
8.2.200.0070.00417.00
8.2.190.0150.00016.58
8.2.180.0150.00625.92
8.2.170.0120.00318.91
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00026.35
8.2.110.0060.00320.72
8.2.100.0120.00018.03
8.2.90.0060.00317.88
8.2.80.0050.00318.86
8.2.70.0090.00017.63
8.2.60.0000.00817.50
8.2.50.0040.00417.89
8.2.40.0040.00418.05
8.2.30.0070.00318.09
8.2.20.0000.00918.08
8.2.10.0040.00419.32
8.2.00.0040.00419.41
8.1.330.0120.00621.92
8.1.320.0100.00816.19
8.1.310.0120.00618.25
8.1.300.0090.00918.24
8.1.290.0090.00018.88
8.1.280.0130.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0030.00722.05
8.1.230.0060.00624.15
8.1.220.0030.00618.01
8.1.210.0060.00318.77
8.1.200.0060.00617.38
8.1.190.0060.00317.36
8.1.180.0000.00918.10
8.1.170.0050.00317.70
8.1.160.0000.00819.00
8.1.150.0080.00018.86
8.1.140.0030.00518.96
8.1.130.0070.00020.24
8.1.120.0040.00417.51
8.1.110.0040.00417.52
8.1.100.0030.00617.55
8.1.90.0040.00417.66
8.1.80.0000.00817.59
8.1.70.0040.00417.64
8.1.60.0000.00817.61
8.1.50.0100.00017.68
8.1.40.0060.00317.53
8.1.30.0000.00817.69
8.1.20.0040.00417.66
8.1.10.0040.00417.66
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.55
8.0.270.0030.00318.15
8.0.260.0060.00018.55
8.0.250.0070.00017.08
8.0.240.0030.00317.00
8.0.230.0000.00717.05
8.0.220.0040.00417.09
8.0.210.0000.00717.04
8.0.200.0070.00017.12
8.0.190.0040.00417.13
8.0.180.0050.00317.02
8.0.170.0000.00817.13
8.0.160.0050.00317.04
8.0.150.0080.00017.02
8.0.140.0050.00317.00
8.0.130.0050.00013.50
8.0.120.0020.00517.03
8.0.110.0070.00017.09
8.0.100.0000.00717.02
8.0.90.0070.00017.04
8.0.80.0060.00917.04
8.0.70.0030.00517.11
8.0.60.0080.00017.12
8.0.50.0050.00217.09
8.0.30.0130.01017.11
8.0.20.0060.01317.16
8.0.10.0170.00717.16
8.0.00.0100.01417.17
7.4.330.0030.00315.55
7.4.320.0000.00616.57
7.4.300.0050.00216.65
7.4.290.0040.00416.61
7.4.280.0030.00616.65
7.4.270.0030.00316.69
7.4.260.0030.00313.39
7.4.250.0000.00716.73
7.4.240.0070.00016.64
7.4.230.0000.00716.75
7.4.220.0020.00516.76
7.4.210.0100.00716.75
7.4.200.0030.00516.76
7.4.140.0100.01316.26
7.4.130.0060.01616.55
7.4.120.0170.00916.59
7.4.110.0100.01316.60
7.4.100.0090.01216.47
7.4.90.0060.01216.63
7.4.80.0120.00916.68
7.4.70.0110.01116.61
7.4.60.0030.01616.73
7.4.50.0080.00816.46
7.4.40.0090.00816.60
7.4.30.0120.00616.70
7.4.20.0100.00716.52
7.4.10.0140.00316.48
7.4.00.0100.00716.59
7.3.330.0030.00416.25
7.3.320.0030.00313.25
7.3.310.0030.00516.45
7.3.300.0060.00016.36
7.3.290.0080.00816.42
7.3.260.0120.00616.29
7.3.250.0040.01816.36
7.3.240.0070.01016.54
7.3.230.0180.00616.45
7.3.220.0120.00616.31
7.3.210.0120.00616.27
7.3.200.0260.01816.34
7.3.190.0100.00716.66
7.3.180.0110.00616.38
7.3.170.0030.01316.37
7.3.160.0030.01316.39
7.3.150.0060.01116.39
7.3.140.0090.00916.45
7.3.130.0100.00616.50
7.3.120.0040.01216.58
7.3.110.0060.00916.11
7.3.100.0100.00716.27
7.3.90.0130.00316.21
7.3.80.0080.00816.63
7.3.70.0140.00316.53
7.3.60.0080.00916.41
7.3.50.0100.00716.23
7.3.40.0030.01316.27
7.3.30.0070.01016.34
7.3.20.0090.01216.35
7.3.10.0120.00616.28
7.3.00.0110.00616.36

preferences:
31.76 ms | 403 KiB | 5 Q