3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new simplexmlelement('<?xml version="1.0" encoding="utf-8"?> <comments><comment> <user>User4251</user> <date>02.10.2018</date> <text>Comment body goes here</text> </comment> <comment> <user>User8650</user> <date>01.10.2018</date> <text>Comment body goes here</text> </comment></comments>'); print_r($xml);

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.5.10.0110.00716.75
8.5.00.0140.00920.33
8.4.150.0020.00014.05
8.4.140.0130.00817.87
8.4.130.0060.00318.12
8.4.120.0060.00220.76
8.4.110.0120.00820.94
8.4.100.0130.00719.38
8.4.90.0060.00220.64
8.4.80.0130.00718.74
8.4.70.0120.00718.26
8.4.60.0070.00919.13
8.4.50.0090.00718.79
8.4.40.0060.01319.67
8.4.30.0150.00417.50
8.4.20.0070.01418.83
8.4.10.0100.01018.02
8.3.280.0140.00818.39
8.3.270.0130.00616.79
8.3.260.0130.00616.89
8.3.250.0140.00418.59
8.3.240.0110.00516.86
8.3.230.0110.00716.65
8.3.220.0070.00618.98
8.3.210.0150.00416.70
8.3.200.0050.00316.66
8.3.190.0120.00517.30
8.3.180.0140.00417.16
8.3.170.0040.01418.75
8.3.160.0090.00616.75
8.3.150.0060.01216.82
8.3.140.0040.01518.43
8.3.130.0030.00618.65
8.3.120.0030.00618.92
8.3.110.0000.00820.94
8.3.100.0060.00324.06
8.3.90.0090.00926.77
8.3.80.0030.00617.97
8.3.70.0080.01118.31
8.3.60.0170.00018.43
8.3.50.0100.00518.26
8.3.40.0000.01518.83
8.3.30.0000.01418.70
8.3.20.0040.00418.91
8.3.10.0080.00021.98
8.3.00.0040.00423.96
8.2.290.0110.00720.78
8.2.280.0070.01018.95
8.2.270.0070.01117.70
8.2.260.0120.00620.64
8.2.250.0080.00018.89
8.2.240.0000.00817.47
8.2.230.0100.00022.58
8.2.220.0060.00337.54
8.2.210.0090.00926.77
8.2.200.0040.00416.75
8.2.190.0110.00418.58
8.2.180.0110.00718.76
8.2.170.0040.01122.96
8.2.160.0100.00322.43
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00321.19
8.2.120.0050.00326.35
8.2.110.0050.00521.19
8.2.100.0000.01219.58
8.2.90.0050.00517.97
8.2.80.0050.00318.03
8.2.70.0060.00318.04
8.2.60.0040.00418.28
8.2.50.0080.00018.10
8.2.40.0000.00820.71
8.2.30.0030.00320.88
8.2.20.0000.00818.20
8.2.10.0050.00218.19
8.2.00.0000.00818.08
8.1.330.0080.01122.44
8.1.320.0100.00718.27
8.1.310.0000.00818.41
8.1.300.0050.00520.50
8.1.290.0040.00430.84
8.1.280.0130.00325.92
8.1.270.0060.00320.41
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0000.00822.23
8.1.230.0080.00321.17
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0030.00618.82
8.1.160.0000.00719.04
8.1.150.0000.00719.08
8.1.140.0000.00819.03
8.1.130.0000.00720.52
8.1.120.0000.00817.51
8.1.110.0000.00917.63
8.1.100.0040.00417.51
8.1.90.0040.00417.62
8.1.80.0040.00417.57
8.1.70.0070.00017.50
8.1.60.0030.00517.74
8.1.50.0030.00517.69
8.1.40.0070.00017.50
8.1.30.0000.00817.77
8.1.20.0030.00617.69
8.1.10.0000.00717.66
8.1.00.0060.00317.66
8.0.300.0070.00019.85
8.0.290.0000.00916.75
8.0.280.0000.00718.55
8.0.270.0040.00417.45
8.0.260.0090.00020.33
8.0.250.0040.00417.10
8.0.240.0030.00317.20
8.0.230.0000.00817.04
8.0.220.0080.00017.10
8.0.210.0000.00717.03
8.0.200.0030.00316.96
8.0.190.0060.00317.03
8.0.180.0040.00416.91
8.0.170.0030.00717.05
8.0.160.0030.00617.06
8.0.150.0060.00316.98
8.0.140.0000.00716.91
8.0.130.0030.00313.41
8.0.120.0050.00316.89
8.0.110.0060.00317.04
8.0.100.0040.00416.85
8.0.90.0030.00516.85
8.0.80.0060.01617.01
8.0.70.0000.00717.07
8.0.60.0050.00316.81
8.0.50.0040.00417.09
8.0.30.0060.01117.20
8.0.20.0120.00917.40
8.0.10.0050.00317.19
8.0.00.0120.00917.00
7.4.330.0050.00015.55
7.4.320.0000.00616.73
7.4.300.0060.00016.66
7.4.290.0080.00016.72
7.4.280.0000.00816.57
7.4.270.0080.00016.68
7.4.260.0030.00316.73
7.4.250.0040.00416.71
7.4.240.0000.00716.54
7.4.230.0070.00016.75
7.4.220.0000.00816.75
7.4.210.0070.01016.69
7.4.200.0030.00316.70
7.4.160.0130.00616.60
7.4.140.0090.00917.86
7.4.130.0060.01016.43
7.4.120.0080.01216.62
7.4.110.0100.01016.69
7.4.100.0030.01316.61
7.4.90.0060.01216.39
7.4.80.0120.00619.39
7.4.70.0030.01416.65
7.4.60.0100.00616.74
7.4.50.0100.00716.39
7.4.40.0060.01216.71
7.4.00.0040.01215.03
7.3.330.0080.00013.06
7.3.320.0000.00513.22
7.3.310.0000.00716.41
7.3.300.0000.00716.23
7.3.290.0030.00316.36
7.3.280.0140.00016.28
7.3.260.0110.00816.43
7.3.240.0110.00716.41
7.3.230.0000.02216.29
7.3.210.0040.01816.31
7.3.200.0090.00916.31
7.3.190.0160.00616.59
7.3.180.0080.01316.29
7.3.170.0070.01316.36
7.3.160.0140.00316.52
7.3.120.0080.01014.95
7.3.110.0100.00714.80
7.3.100.0030.01015.07
7.3.90.0050.01014.91
7.3.80.0070.00514.52
7.3.70.0050.00514.76
7.3.60.0090.00614.66
7.3.50.0040.00814.71
7.3.40.0030.01014.68
7.3.30.0050.01014.84
7.3.20.0070.00716.59
7.3.10.0030.00716.68
7.3.00.0060.00616.64
7.2.330.0130.00616.54
7.2.320.0080.01216.60
7.2.310.0070.00916.60
7.2.300.0030.01716.75
7.2.290.0200.00316.72
7.2.250.0070.01314.79
7.2.240.0060.01315.07
7.2.230.0020.01814.73
7.2.220.0120.00314.81
7.2.210.0020.01414.96
7.2.200.0030.00914.84
7.2.190.0020.01414.98
7.2.180.0060.00615.17
7.2.170.0080.00815.04
7.2.130.0070.00717.05
7.2.120.0030.00916.97
7.2.110.0030.00916.93
7.2.100.0750.00715.70
7.2.90.0950.01115.69
7.2.80.0930.00615.81
7.2.70.1010.00815.99
7.2.60.1060.00515.75
7.2.50.1000.00815.80
7.2.40.0880.00815.79
7.2.30.1280.00815.65
7.2.20.0960.00616.05
7.2.10.0990.00315.64
7.2.00.0900.00415.90
7.1.330.0100.00515.92
7.1.320.0090.00515.79
7.1.310.0120.00315.73
7.1.300.0070.00315.89
7.1.290.0060.00915.82
7.1.280.0090.00515.76
7.1.270.0080.01015.79
7.1.260.0050.00515.96
7.1.250.0040.00816.09
7.1.220.1590.00313.94
7.1.210.1650.00613.87
7.1.200.1890.00613.84
7.1.190.1890.01013.77
7.1.180.1700.00713.92
7.1.170.1830.01013.71
7.1.160.2090.00313.74
7.1.150.1570.01013.72
7.1.140.1740.01313.96
7.1.130.1940.00313.66
7.1.120.1580.00613.72
7.1.110.1710.00613.98
7.1.100.1540.00614.06
7.1.90.1590.01014.00
7.1.80.1410.01013.44
7.1.70.1470.01014.05
7.1.60.1600.01031.84
7.1.50.2270.00331.73
7.1.40.2530.00331.79
7.1.30.2460.00031.95
7.1.20.2180.00731.86
7.1.10.2250.01313.87
7.1.00.1550.00313.97
5.6.380.0170.00014.43

preferences:
18.06 ms | 403 KiB | 5 Q