3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dom = new DOMDocument('1.0', 'utf-8'); $rootNode = $dom->createElement('OTA_VehAvailRateRQ'); $rootNode->setAttribute('PrimaryLangID', 'EN'); $rootNode->setAttribute('TimeStamp', 'EN'); $rootNode->setAttribute('Target', 'EN'); $rootNode->setAttribute('Version', 'EN'); $rootNode->setAttribute('TransactionIdentifier', 'EN'); $rootNode->setAttribute('SequenceNmbr', 'EN'); $rootNode->setAttribute('MaxResponses', 'EN'); // $POSNode = $dom->createElement('POS'); $dom->appendChild($rootNode); echo $dom->saveXML();
based on 4te0e

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0030.01216.56
7.3.00.0040.00716.34
7.2.130.0030.01016.77
7.2.120.0070.01117.09
7.2.110.0040.00816.87
7.2.100.0000.01316.70
7.2.90.0040.01116.80
7.2.80.0030.00916.71
7.2.70.0060.00616.85
7.2.60.0030.01416.64
7.2.50.0000.01016.67
7.2.40.0060.00617.18
7.2.30.0080.00817.21
7.2.20.0140.00016.78
7.2.10.0080.00416.96
7.2.00.0040.01118.12
7.1.250.0030.00615.89
7.1.100.0000.01218.00
7.1.70.0000.00816.98
7.1.60.0070.01719.46
7.1.50.0080.01516.84
7.1.00.0030.07722.58
7.0.200.0040.00416.65
7.0.140.0070.03722.04
7.0.60.0000.04319.99
7.0.50.0100.07717.99
7.0.40.0070.09020.19
7.0.30.0200.04020.25
7.0.20.0230.06320.36
7.0.10.0100.03720.06
7.0.00.0130.08320.21
5.6.280.0100.07320.82
5.6.210.0100.05720.48
5.6.200.0230.04018.23
5.6.190.0070.05020.46
5.6.180.0170.04720.56
5.6.170.0370.07320.60
5.6.160.0130.08020.52
5.6.150.0070.04018.29
5.6.140.0030.07718.28
5.6.130.0130.07318.28
5.6.120.0130.03721.01
5.6.110.0200.06721.03
5.6.100.0170.07321.01
5.6.90.0200.07021.01
5.6.80.0170.06020.42
5.5.350.3970.04320.42
5.5.340.0070.08018.04
5.5.330.0100.07020.50
5.5.320.0030.08020.57
5.5.310.0200.05020.36
5.5.300.0100.08018.02
5.5.290.0000.05318.08
5.5.280.0130.05020.81
5.5.270.0070.04020.90
5.5.260.0000.09320.95
5.5.250.0030.08720.65
5.5.240.0000.05020.34
5.4.450.0530.06319.54
5.4.440.0470.05019.46
5.4.430.0070.05719.36
5.4.420.0100.05719.57
5.4.410.0130.06019.44
5.4.400.0100.06019.23
5.4.390.0130.06018.66
5.4.380.0130.06718.70
5.4.370.0170.06318.68
5.4.360.0230.04718.80
5.4.350.0130.06318.66
5.4.340.0100.06018.63
5.4.320.0270.05018.77
5.4.310.0230.05718.64
5.4.300.0200.05018.53
5.4.290.0200.05718.63
5.4.280.0230.05318.77
5.4.270.0270.04718.75
5.4.260.0370.05018.84
5.4.250.0200.07718.80
5.4.240.0170.05718.57
5.4.230.0230.04718.62
5.4.220.0200.05718.56
5.4.210.0100.06018.78
5.4.200.0170.05016.73
5.4.190.0200.05318.69
5.4.180.0200.05318.80
5.4.170.0300.06018.51
5.4.160.0200.05018.77
5.4.150.0230.05018.67
5.4.140.0200.07716.15
5.4.130.0170.07316.32
5.4.120.0200.05316.38
5.4.110.0130.05716.24
5.4.100.0130.05016.29
5.4.90.0130.05716.32
5.4.80.0130.05016.30
5.4.70.0170.05016.26
5.4.60.0270.04716.35
5.4.50.0300.05016.28
5.4.40.0130.05716.06
5.4.30.0130.05016.34
5.4.20.0130.05716.25
5.4.10.0230.04716.19
5.4.00.0270.04315.73
5.3.290.0130.06314.69
5.3.280.0270.04714.70
5.3.270.0200.05714.63
5.3.260.0230.05014.82
5.3.250.0230.05014.73
5.3.240.0200.05014.75
5.3.230.0300.04014.73
5.3.220.0200.05314.71
5.3.210.0130.06014.70
5.3.200.0100.06014.73
5.3.190.0270.06314.59
5.3.180.0270.04714.56
5.3.170.0130.05714.63
5.3.160.0130.05314.59
5.3.150.0100.05714.60
5.3.140.0100.06314.56
5.3.130.0230.06714.66
5.3.120.0170.06014.54
5.3.110.0130.05314.58
5.3.100.0130.05714.19
5.3.90.0130.06014.18
5.3.80.0230.04314.21
5.3.70.0230.04314.09
5.3.60.0170.05714.02
5.3.50.0230.05013.97
5.3.40.0130.05714.09
5.3.30.0070.05713.91
5.3.20.0230.04713.84
5.3.10.0200.05013.71
5.3.00.0130.05313.63
5.2.170.0100.04711.25
5.2.160.0170.05011.17
5.2.150.0100.04311.16
5.2.140.0070.05011.31
5.2.130.0030.05711.39
5.2.120.0270.02711.24
5.2.110.0170.04011.09
5.2.100.0070.04311.10
5.2.90.0170.03711.28
5.2.80.0070.04711.27
5.2.70.0200.04311.27
5.2.60.0170.03711.04
5.2.50.0200.04011.08
5.2.40.0170.03711.17
5.2.30.0170.03710.99
5.2.20.0130.04011.16
5.2.10.0100.04011.02
5.2.00.0200.04310.90
5.1.60.0170.03010.26
5.1.50.0130.03310.13
5.1.40.0130.04010.11
5.1.30.0030.04310.61
5.1.20.0130.04010.47
5.1.10.0100.03710.27
5.1.00.0100.04010.24
5.0.50.0070.0308.63
5.0.40.0130.0238.59
5.0.30.0070.0508.41
5.0.20.0070.0338.41
5.0.10.0100.0338.39
5.0.00.0070.0438.36
4.4.90.0130.0175.89
4.4.80.0030.0275.82
4.4.70.0070.0235.86
4.4.60.0100.0205.92
4.4.50.0030.0275.91
4.4.40.0030.0435.90
4.4.30.0070.0275.90
4.4.20.0070.0235.92
4.4.10.0030.0236.00
4.4.00.0030.0405.90
4.3.110.0070.0235.81
4.3.100.0100.0235.82
4.3.90.0100.0175.89
4.3.80.0170.0235.86
4.3.70.0030.0235.82
4.3.60.0100.0175.82
4.3.50.0100.0175.89
4.3.40.0030.0405.75
4.3.30.0030.0234.56
4.3.20.0030.0274.63
4.3.10.0000.0274.49
4.3.00.0100.0238.41