3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->appendChild($dom->createElement('xml')); $dom->documentElement->appendChild($dom->createComment('comment'))); echo $dom->saveXml();

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)
5.4.310.3900.03019.20
5.4.300.3900.05019.25
5.4.290.3870.03319.26
5.4.280.4130.04019.22
5.4.270.3770.04019.17
5.4.260.3870.03718.98
5.4.250.3770.03718.94
5.4.240.4500.03318.93
5.4.230.4100.03719.05
5.4.220.3830.03719.23
5.4.210.2430.04718.93
5.4.200.3570.03319.21
5.4.190.3670.03319.12
5.4.180.3500.03319.16
5.4.170.3670.04319.12
5.4.160.2630.04019.20
5.4.150.3170.04018.92
5.4.140.2930.03316.39
5.4.130.3500.03316.47
5.4.120.3670.04016.44
5.4.110.4100.03716.32
5.4.100.3800.03316.45
5.4.90.3870.02716.51
5.4.80.4070.03316.50
5.4.70.3830.03316.51
5.4.60.3670.03316.43
5.4.50.3800.03016.45
5.4.40.3800.03016.45
5.4.30.3600.03716.45
5.4.20.4170.03716.46
5.4.10.4100.03316.42
5.4.00.4070.04015.98
5.3.280.3900.03014.54
5.3.270.3370.04014.63
5.3.260.3170.04314.70
5.3.250.3070.03314.51
5.3.240.3370.03314.54
5.3.230.3930.04014.54
5.3.220.3670.04314.49
5.3.210.3800.04014.36
5.3.200.3900.03014.53
5.3.190.4330.04314.58
5.3.180.3430.03014.49
5.3.170.4030.04014.49
5.3.160.3800.04314.49
5.3.150.3870.03314.65
5.3.140.3770.03014.52
5.3.130.3900.03714.64
5.3.120.4170.03714.47
5.3.110.3830.03314.50
5.3.100.4200.02713.97
5.3.90.3630.04014.11
5.3.80.3930.03313.96
5.3.70.4030.04713.98
5.3.60.3770.03714.02
5.3.50.4070.03313.87
5.3.40.4000.03713.91
5.3.30.3930.03313.85
5.3.20.0100.03013.63
5.3.10.3570.04013.61
5.3.00.3870.03013.48
5.2.170.3500.03711.12
5.2.160.3030.03011.23
5.2.150.3600.02311.04
5.2.140.0100.03310.96
5.2.130.0000.03711.04
5.2.120.0000.03011.05
5.2.110.3400.02311.01
5.2.100.3370.02711.09
5.2.90.3300.02711.07
5.2.80.3470.02310.95
5.2.70.3330.02011.17
5.2.60.3230.02711.02
5.2.50.3230.02010.98
5.2.40.2470.03010.99
5.2.30.2500.02710.94
5.2.20.2470.02710.94
5.2.10.2700.02310.86
5.2.00.2800.02010.60
5.1.60.2470.0309.96
5.1.50.2500.0279.97
5.1.40.3130.02710.02
5.1.30.3200.02710.34
5.1.20.3000.03010.38
5.1.10.1570.02310.11
5.1.00.0030.04010.07
5.0.50.0030.0208.55
5.0.40.0000.0508.32
5.0.30.0030.0638.20
5.0.20.0030.0408.35
5.0.10.1770.0208.20
5.0.00.1800.0378.06
4.4.90.1230.0177.53
4.4.80.1300.0137.53
4.4.70.1200.0177.53
4.4.60.1470.0137.53
4.4.50.1300.0107.53
4.4.40.1300.0277.53
4.4.30.1400.0177.53
4.4.20.1570.0177.53
4.4.10.0000.0207.53
4.4.00.0000.0337.53
4.3.110.0000.0237.53
4.3.100.0000.0237.53
4.3.90.0930.0107.53
4.3.80.1670.0277.53
4.3.70.1870.0177.53
4.3.60.1830.0177.53
4.3.50.1800.0177.53
4.3.40.1830.0277.53
4.3.30.0900.0207.53
4.3.20.0930.0207.53
4.3.10.0830.0177.53
4.3.00.0730.0177.53

preferences:
133.69 ms | 1394 KiB | 7 Q