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>'); $child = $xml->addchild('comment'); $child->addChild("user","User2245"); $child->addChild("date","02.10.2018"); $child->addChild("text","The comment text goes here"); echo $xml->asXML();

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.0100.00824.23
8.4.110.0070.00218.90
8.4.100.0120.00820.55
8.4.90.0130.00818.75
8.4.80.0130.00817.99
8.4.70.0110.01018.33
8.4.60.0110.00819.39
8.4.50.0120.00818.14
8.4.40.0130.00719.51
8.4.30.0130.00717.93
8.4.20.0110.00920.85
8.4.10.0130.00617.81
8.3.250.0110.00818.92
8.3.240.0130.00517.17
8.3.230.0120.00816.61
8.3.220.0110.00717.41
8.3.210.0090.00916.80
8.3.200.0040.00518.67
8.3.190.0080.00917.13
8.3.180.0110.00717.42
8.3.170.0150.00416.47
8.3.160.0090.00918.43
8.3.150.0120.00619.07
8.3.140.0060.00316.71
8.3.130.0060.00616.51
8.3.120.0040.00721.09
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0070.00026.77
8.3.80.0090.00318.56
8.3.70.0160.00616.88
8.3.60.0160.00018.43
8.3.50.0130.00818.22
8.3.40.0090.00618.65
8.3.30.0070.00718.84
8.3.20.0030.00518.85
8.3.10.0050.00322.00
8.3.00.0080.00023.85
8.2.290.0120.00720.63
8.2.280.0100.01018.48
8.2.270.0120.00617.66
8.2.260.0110.00418.82
8.2.250.0030.00617.12
8.2.240.0040.01117.40
8.2.230.0120.00422.58
8.2.220.0050.00537.54
8.2.210.0100.00726.77
8.2.200.0090.00018.91
8.2.190.0060.00918.88
8.2.180.0120.00825.92
8.2.170.0090.00619.12
8.2.160.0140.00022.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00321.30
8.2.120.0050.00326.35
8.2.110.0050.00521.30
8.2.100.0070.00418.09
8.2.90.0000.00918.16
8.2.80.0000.01118.18
8.2.70.0040.00418.29
8.2.60.0040.00418.34
8.2.50.0080.00018.10
8.2.40.0000.00921.18
8.2.30.0030.00320.79
8.2.20.0000.00718.26
8.2.10.0040.00418.24
8.2.00.0030.00518.14
8.1.330.0140.00721.85
8.1.320.0170.00416.14
8.1.310.0030.01417.11
8.1.300.0030.01018.38
8.1.290.0040.00430.84
8.1.280.0070.01025.92
8.1.270.0100.00722.39
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00324.17
8.1.230.0030.00923.00
8.1.220.0040.00418.01
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0000.00817.36
8.1.180.0030.00618.10
8.1.170.0080.00018.71
8.1.160.0000.00719.07
8.1.150.0040.00419.01
8.1.140.0050.00219.00
8.1.130.0000.00720.55
8.1.120.0000.00817.67
8.1.110.0040.00417.64
8.1.100.0000.00917.62
8.1.90.0040.00417.66
8.1.80.0030.00617.53
8.1.70.0030.00317.65
8.1.60.0000.00817.67
8.1.50.0000.00817.63
8.1.40.0050.00317.75
8.1.30.0030.00517.80
8.1.20.0040.00417.71
8.1.10.0020.00517.83
8.1.00.0060.00617.74
8.0.300.0040.00419.93
8.0.290.0040.00417.00
8.0.280.0030.00518.69
8.0.270.0060.00317.01
8.0.260.0030.00520.31
8.0.250.0040.00417.14
8.0.240.0080.00017.09
8.0.230.0070.00317.11
8.0.220.0040.00417.05
8.0.210.0030.00316.98
8.0.200.0040.00417.00
8.0.190.0040.00417.05
8.0.180.0050.00317.11
8.0.170.0000.00917.13
8.0.160.0040.00417.11
8.0.150.0050.00217.07
8.0.140.0030.00517.09
8.0.130.0000.00513.50
8.0.120.0020.00517.08
8.0.110.0050.00317.11
8.0.100.0070.00016.89
8.0.90.0070.00016.97
8.0.80.0070.00917.15
8.0.70.0030.00517.12
8.0.60.0040.00417.16
8.0.50.0070.00016.89
8.0.30.0110.00817.29
8.0.20.0110.00717.42
8.0.10.0040.00416.99
8.0.00.0140.00517.04
7.4.330.0000.00515.55
7.4.320.0060.00016.64
7.4.300.0000.00716.80
7.4.290.0000.00716.70
7.4.280.0000.00716.58
7.4.270.0040.00416.73
7.4.260.0070.00416.75
7.4.250.0040.00416.61
7.4.240.0050.00316.64
7.4.230.0000.00716.56
7.4.220.0040.00416.77
7.4.210.0100.00616.81
7.4.200.0030.00316.55
7.4.160.0100.00916.71
7.4.140.0070.01117.86
7.4.130.0110.00716.47
7.4.120.0090.00916.64
7.4.110.0080.01116.61
7.4.100.0030.01716.67
7.4.90.0120.01216.78
7.4.80.0060.01319.39
7.4.70.0060.01016.75
7.4.60.0080.00916.51
7.4.50.0100.00716.71
7.4.40.0100.01016.55
7.4.10.0060.01215.04
7.4.00.0050.01115.06
7.3.330.0000.00513.08
7.3.320.0060.00013.17
7.3.310.0000.00716.39
7.3.300.0030.00316.29
7.3.290.0000.00716.43
7.3.280.0090.00616.32
7.3.260.0070.01216.55
7.3.240.0080.01116.49
7.3.230.0070.01016.54
7.3.210.0140.00916.44
7.3.200.0110.00416.66
7.3.190.0070.01016.66
7.3.180.0110.00616.38
7.3.170.0070.01016.42
7.3.160.0060.00916.70
7.3.130.0070.01114.82
7.3.120.0090.00814.89
7.3.110.0120.00514.78
7.3.100.0070.00914.75
7.3.90.0100.00414.80
7.3.80.0040.00814.87
7.3.70.0050.00714.84
7.3.60.0050.00914.85
7.3.50.0060.00714.60
7.3.40.0040.00814.81
7.3.30.0050.00714.80
7.3.20.0090.00416.70
7.3.10.0030.01216.56
7.3.00.0090.00416.64
7.2.330.0100.01016.73
7.2.320.0060.01516.60
7.2.310.0140.00416.55
7.2.300.0090.01116.88
7.2.290.0140.00316.69
7.2.260.0090.00915.23
7.2.250.0050.00815.17
7.2.240.0060.00915.04
7.2.230.0090.00614.95
7.2.220.0090.00615.12
7.2.210.0050.01015.05
7.2.200.0060.00515.11
7.2.190.0040.01015.00
7.2.180.0100.00415.10
7.2.170.0080.00814.85
7.2.160.0050.00915.03
7.2.150.0030.01017.02
7.2.140.0080.00816.98
7.2.130.0060.01016.79
7.2.120.0040.01116.98
7.2.110.0030.01416.91
7.2.100.1190.01216.22
7.2.90.1360.00716.07
7.2.80.1420.00516.06
7.2.70.1400.00616.18
7.2.60.1150.00816.31
7.2.50.1190.00816.14
7.2.40.1350.00616.23
7.2.30.1660.01016.23
7.2.20.1430.00716.17
7.2.10.1710.00816.13
7.2.00.1160.00916.09
7.1.330.0090.00515.82
7.1.320.0090.00715.68
7.1.310.0090.00515.69
7.1.300.0010.01215.61
7.1.290.0050.00815.74
7.1.280.0050.01115.66
7.1.270.0050.00615.62
7.1.260.0050.00515.69
7.1.250.0070.00715.57
7.1.240.0070.01115.84
7.1.230.0080.00415.90
7.1.220.2110.01114.68
7.1.210.1630.00614.65
7.1.200.1970.00914.53
7.1.190.2270.00914.83
7.1.180.1590.00714.73
7.1.170.1550.00714.67
7.1.160.2140.01114.65
7.1.150.2160.00814.63
7.1.140.2270.01114.84
7.1.130.2230.00814.70
7.1.120.2490.01014.38
7.1.110.2990.00514.66
7.1.100.2930.00814.83
7.1.90.2790.00314.59
7.1.80.2430.00514.84
7.1.70.2220.00314.56
7.1.60.3240.00523.88
7.1.50.3630.01223.90
7.1.40.2660.00823.73
7.1.30.0890.01323.79
7.1.20.1220.00623.78
7.1.10.2460.00814.55
7.1.00.3620.01014.78
7.0.330.0070.00315.30
7.0.320.0040.01115.28
7.0.310.0030.01315.40
7.0.300.0120.00015.48
7.0.290.0070.00715.36
7.0.280.0110.00015.24
7.0.270.0060.00615.23
7.0.260.0100.00315.35
7.0.250.0070.00715.44
7.0.240.0000.01215.61
7.0.230.0050.00815.49
7.0.220.0070.00715.69
7.0.210.0000.00815.57
7.0.200.0030.00615.43
7.0.190.0000.01015.31
7.0.180.0000.01315.48
7.0.170.0060.00615.59
7.0.160.0000.01315.54
7.0.150.0080.00015.54
7.0.140.0070.00715.21
7.0.130.0070.00415.62
7.0.120.0030.01015.36
7.0.110.0060.00615.42
7.0.100.0000.01415.61
7.0.90.0100.00615.57
7.0.80.0000.00715.63
7.0.70.0070.00415.46
7.0.60.0000.01215.46
7.0.50.0030.00715.59
7.0.40.0090.00613.56
7.0.30.0070.00713.50
7.0.20.0070.00713.55
7.0.10.0040.01113.48
7.0.00.0030.01413.55
5.6.400.0060.00614.45
5.6.390.0160.00314.05
5.6.380.0030.01214.40
5.6.370.0070.01014.66
5.6.360.0070.00714.46
5.6.350.0120.00314.70
5.6.340.0000.01614.44
5.6.330.0040.01114.48
5.6.320.0030.01014.45
5.6.310.0070.00414.13
5.6.300.0000.01114.65
5.6.290.0030.00614.18
5.6.280.0030.00614.56
5.6.270.0080.00414.39
5.6.260.0000.01614.59
5.6.250.0000.01414.22
5.6.240.0060.00614.49
5.6.230.0040.00414.45
5.6.220.0090.00614.46
5.6.210.0000.01014.37
5.6.200.0070.01014.38
5.6.190.0030.01014.34
5.6.180.0030.01014.29
5.6.170.0090.00914.43
5.6.160.0060.00914.44
5.6.150.0070.00714.53
5.6.140.0030.01314.39
5.6.130.0000.01414.50
5.6.120.0060.00914.27
5.6.110.0090.00614.41
5.6.100.0000.00814.57
5.6.90.0070.00414.43
5.6.80.0050.00514.27
5.6.70.0000.00814.21
5.6.60.0030.01014.53
5.6.50.0030.01014.39
5.6.40.0030.00614.13
5.6.30.0070.00714.65
5.6.20.0000.01514.32
5.6.10.0040.01114.29
5.6.00.0060.00614.20

preferences:
30.24 ms | 403 KiB | 5 Q