3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = '<?xml version="1.0" encoding="utf-8"?><customers></customers>'; $sxe = new SimpleXMLElement($xmlstr); $sxe->addAttribute('type', 'documentary'); $movie = $sxe->addChild('movie'); $movie->addChild('title', htmslpecialchars('PHP2: More & Parser Stories')); $movie->addChild('plot', 'This is all about the people who make it work.'); $characters = $movie->addChild('characters'); $character = $characters->addChild('character'); $character->addChild('name', 'Mr. Parser'); $character->addChild('actor', 'John Doe'); $rating = $movie->addChild('rating', '5'); $rating->addAttribute('type', 'stars'); echo $sxe->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.3.40.0150.00018.95
8.3.30.0110.00319.06
8.3.20.0000.00821.98
8.3.10.0050.00321.98
8.3.00.0080.00019.81
8.2.170.0110.01122.96
8.2.160.0170.00319.58
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.44
8.2.120.0000.00826.35
8.2.110.0030.00721.25
8.2.100.0090.00317.97
8.2.90.0000.00818.09
8.2.80.0000.00818.41
8.2.70.0000.00818.16
8.2.60.0040.00418.05
8.2.50.0000.00918.16
8.2.40.0000.00720.55
8.2.30.0040.00419.46
8.2.20.0040.00418.27
8.2.10.0030.00518.30
8.2.00.0070.00018.35
8.1.270.0040.00423.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0210.00022.58
8.1.230.0070.00421.22
8.1.220.0000.00817.91
8.1.210.0060.00319.00
8.1.200.0000.00817.38
8.1.190.0040.00417.47
8.1.180.0040.00418.10
8.1.170.0080.00018.86
8.1.160.0040.00418.99
8.1.150.0000.00719.14
8.1.140.0000.00817.78
8.1.130.0040.00719.26
8.1.120.0050.00517.54
8.1.110.0030.00517.49
8.1.100.0040.00417.57
8.1.90.0070.00017.64
8.1.80.0060.00317.57
8.1.70.0060.00317.64
8.1.60.0040.00417.82
8.1.50.0040.00417.59
8.1.40.0090.00017.62
8.1.30.0000.00717.79
8.1.20.0060.00317.79
8.1.10.0070.00017.64
8.1.00.0020.00517.73
8.0.300.0030.00520.06
8.0.290.0000.00716.88
8.0.280.0080.00018.54
8.0.270.0070.00017.40
8.0.260.0070.00017.39
8.0.250.0050.00317.13
8.0.240.0050.00517.20
8.0.230.0070.00017.06
8.0.220.0000.00717.01
8.0.210.0070.00017.13
8.0.200.0000.00717.24
8.0.190.0000.00717.19
8.0.180.0040.00417.15
8.0.170.0060.00317.08
8.0.160.0030.00617.18
8.0.150.0040.00317.00
8.0.140.0000.00717.07
8.0.130.0000.00613.49
8.0.120.0040.00417.07
8.0.110.0080.00017.02
8.0.100.0000.00816.94
8.0.90.0070.00017.04
8.0.80.0150.00317.16
8.0.70.0040.00417.12
8.0.60.0040.00417.12
8.0.50.0040.00416.89
8.0.30.0080.00917.19
8.0.20.0100.01017.41
8.0.10.0040.00417.25
8.0.00.0080.01016.99
7.4.330.0050.00016.91
7.4.320.0040.00416.67
7.4.300.0030.00316.79
7.4.290.0030.00316.72
7.4.280.0030.00616.72
7.4.270.0000.00716.60
7.4.260.0070.00016.80
7.4.250.0070.00016.78
7.4.240.0000.00716.74
7.4.230.0050.00216.63
7.4.220.0040.00416.68
7.4.210.0110.00716.81
7.4.200.0040.00416.80
7.4.160.0080.00816.70
7.4.140.0150.00717.86
7.4.130.0120.00616.72
7.4.120.0110.00916.78
7.4.110.0060.01316.77
7.4.100.0030.01316.68
7.4.90.0060.01216.57
7.4.80.0180.00619.39
7.4.70.0060.01016.97
7.4.60.0100.00616.64
7.4.50.0100.00616.55
7.4.40.0130.00716.68
7.4.00.0040.01415.34
7.3.330.0070.00013.32
7.3.320.0000.00713.33
7.3.310.0000.00716.55
7.3.300.0050.00316.49
7.3.290.0000.00716.38
7.3.280.0070.01016.45
7.3.260.0080.01016.51
7.3.240.0090.00816.57
7.3.230.0110.00616.76
7.3.210.0070.01016.65
7.3.200.0120.01116.59
7.3.190.0100.00716.82
7.3.180.0120.00616.44
7.3.170.0040.01216.73
7.3.160.0110.00716.70
7.3.10.0060.00916.75
7.3.00.0110.00416.74
7.2.330.0090.00916.90
7.2.320.0140.00716.84
7.2.310.0110.01216.73
7.2.300.0060.01216.62
7.2.290.0060.01216.86
7.2.130.0000.01116.86
7.2.120.0060.00916.86
7.2.110.0060.01017.11
7.2.100.0040.00816.96
7.2.90.0070.00717.04
7.2.80.0000.01416.82
7.2.70.0100.00016.95
7.2.60.0050.00717.03
7.2.50.0060.00817.00
7.2.40.1680.01217.39
7.2.30.1630.01117.37
7.2.20.1490.00617.10
7.2.10.1660.01217.18
7.2.00.1160.01417.40
7.1.250.0060.00315.98
7.1.200.0100.00315.83
7.1.160.3150.01116.56
7.1.150.3170.01716.45
7.1.140.2270.01116.70
7.1.130.2330.01416.37
7.1.120.2890.01216.52
7.1.110.3010.01215.91
7.1.100.2200.01415.93
7.1.90.4060.01016.20
7.1.80.3030.01215.70
7.1.70.3890.01215.17
7.1.60.3030.01833.15
7.1.50.4210.01432.97
7.1.40.4100.01232.68
7.1.30.4180.01532.56
7.1.20.4560.01732.84
7.1.10.4910.01114.66
7.1.00.2130.00714.70

preferences:
55.52 ms | 400 KiB | 5 Q