3v4l.org

run code in 300+ PHP versions simultaneously
<?php //creating an XML document $dom = new DOMDocument('1.0'); $dom->xmlStandalone = false; //create element manifest $manfiestNode = $dom->createElement('manifest',""); $dom->importNode($manifiestNode); //create attribute identifier $manfiestNodeAttr = $dom->createAttribute('identifier'); //value for the manifest node identifier value $date = new DateTime(); $manfiestNodeAttr->value = 'course_'.date_format($date,'U'); //append attribute to the manifest element $manfiestNode->appendChild($manfiestNodeAttr); $manfiestNode->appendChild($dom->createAttribute('xmlns:xsi'))->appendChild($dom->createTextNode("http://www.w3.org/2001/XMLSchema-instance")); //add metadata element under manifest node $metaData = $dom->createElement('metadata',''); //add metadata element to manifest node $manfiestNode->appendChild($metaData); //create schema and schemaversion element under metatag $schema = $dom->createElement('schema','ADL SCORM'); $schemaVersion = $dom->createElement('schemaversion', '2004 3rd Edition'); //create schema and schemaversion element under metatag $metaData->appendChid($schema); $metaData->appendChid($schemaVersion); //append manifest element to the document $dom->appendChild($manfiestNode); var_dump($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)
8.3.60.0090.00918.55
8.3.50.0160.00522.12
8.3.40.0110.00418.77
8.3.30.0100.00318.90
8.3.20.0040.00420.33
8.3.10.0040.00422.23
8.3.00.0050.00322.57
8.2.180.0070.00718.66
8.2.170.0070.01122.96
8.2.160.0100.00320.93
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.49
8.2.110.0090.01322.13
8.2.100.0080.00317.91
8.2.90.0000.00818.98
8.2.80.0050.00318.04
8.2.70.0120.00017.50
8.2.60.0080.00017.91
8.2.50.0100.00018.07
8.2.40.0100.00018.34
8.2.30.0050.00318.10
8.2.20.0040.00417.59
8.2.10.0080.00017.65
8.2.00.0000.00717.59
8.1.280.0000.01525.92
8.1.270.0080.00024.05
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0120.00923.76
8.1.230.0040.00819.25
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00617.48
8.1.190.0000.00717.63
8.1.180.0060.00318.10
8.1.170.0030.00618.45
8.1.160.0000.00721.90
8.1.150.0050.00218.67
8.1.140.0030.00617.51
8.1.130.0070.00017.73
8.1.120.0040.00417.56
8.1.110.0040.00417.39
8.1.100.0040.00417.44
8.1.90.0040.00417.54
8.1.80.0000.00717.40
8.1.70.0030.00317.39
8.1.60.0040.00817.61
8.1.50.0040.00417.66
8.1.40.0040.00417.55
8.1.30.0030.00617.69
8.1.20.0040.00417.68
8.1.10.0030.00517.61
8.1.00.0040.00417.57
8.0.300.0080.00018.77
8.0.290.0050.00217.05
8.0.280.0000.00718.47
8.0.270.0030.00317.23
8.0.260.0030.00316.98
8.0.250.0000.00717.00
8.0.240.0070.00016.95
8.0.230.0070.00017.00
8.0.220.0030.00516.93
8.0.210.0000.00716.95
8.0.200.0030.00316.95
8.0.190.0000.00917.00
8.0.180.0040.00416.95
8.0.170.0030.00616.92
8.0.160.0030.00516.93
8.0.150.0040.00416.94
8.0.140.0040.00416.84
8.0.130.0000.00613.40
8.0.120.0080.00016.93
8.0.110.0040.00416.91
8.0.100.0000.00717.04
8.0.90.0070.00017.02
8.0.80.0060.00917.04
8.0.70.0000.00716.82
8.0.60.0040.00417.01
8.0.50.0040.00416.98
8.0.30.0070.01217.01
8.0.20.0060.01217.41
8.0.10.0020.00517.11
8.0.00.0100.00816.74
7.4.330.0030.00315.12
7.4.320.0000.00616.55
7.4.300.0080.00016.54
7.4.290.0070.00016.71
7.4.280.0070.00016.54
7.4.270.0030.00316.72
7.4.260.0050.00216.71
7.4.250.0000.00716.65
7.4.240.0040.00416.57
7.4.230.0030.00316.80
7.4.220.0000.01816.60
7.4.210.0090.00716.62
7.4.200.0000.00716.44
7.4.190.0070.00016.79
7.4.160.0120.00416.54
7.4.150.0040.01417.40
7.4.140.0130.00817.86
7.4.130.0170.00216.62
7.4.120.0080.01016.49
7.4.110.0080.00816.59
7.4.100.0100.00716.57
7.4.90.0160.00516.64
7.4.80.0150.00316.55
7.4.70.0120.00916.35
7.4.60.0130.00616.69
7.4.50.0000.00616.48
7.4.40.0090.00622.77
7.4.30.0120.00916.66
7.4.00.0090.01014.95
7.3.330.0000.00513.22
7.3.320.0060.00013.13
7.3.310.0030.00316.19
7.3.300.0000.00716.16
7.3.290.0090.00616.31
7.3.280.0040.01316.29
7.3.270.0070.01017.40
7.3.260.0120.00916.52
7.3.250.0100.00816.50
7.3.240.0140.01216.39
7.3.230.0050.01116.54
7.3.210.0070.01116.39
7.3.200.0110.01119.39
7.3.190.0070.01016.25
7.3.180.0090.00616.47
7.3.170.0120.00616.58
7.3.160.0070.01016.30
7.3.120.0070.00814.66
7.3.110.0050.01114.58
7.3.100.0070.00914.59
7.3.90.0050.00914.72
7.3.80.0030.01114.77
7.3.70.0010.01014.63
7.3.60.0070.00614.76
7.3.50.0070.00714.92
7.3.40.0090.00514.88
7.3.30.0020.01214.63
7.3.20.0060.00816.56
7.3.10.0060.00716.66
7.3.00.0080.00716.67
7.2.330.0130.00316.39
7.2.320.0140.00816.71
7.2.310.0110.00816.68
7.2.300.0060.01016.49
7.2.290.0070.01016.50
7.2.250.0080.01215.06
7.2.240.0080.01015.12
7.2.230.0050.00814.92
7.2.220.0020.01314.99
7.2.210.0070.00914.82
7.2.200.0100.00515.07
7.2.190.0090.00515.00
7.2.180.0030.01115.09
7.2.170.0030.01014.98
7.2.60.0040.00816.54
7.2.00.0090.00619.17
7.1.330.0050.01015.86
7.1.320.0050.01115.87
7.1.310.0050.01115.93
7.1.300.0070.00815.80
7.1.290.0050.01015.73
7.1.280.0060.00715.66
7.1.270.0030.01115.70
7.1.260.0050.00815.73
7.1.200.0090.00015.78
7.1.100.0000.01117.82
7.1.70.0060.00617.07
7.1.60.0120.01219.82
7.1.50.0030.01316.86
7.1.00.0100.06722.37
7.0.200.0060.00916.46
7.0.140.0100.06322.00
7.0.60.0200.05719.91
7.0.50.0070.05017.85
7.0.40.0130.08020.42
7.0.30.0470.04720.18
7.0.20.0230.09320.16
7.0.10.0030.05320.09
7.0.00.0100.08020.19
5.6.280.0030.07320.93
5.6.210.0100.08020.79
5.6.200.0000.05318.15
5.6.190.0170.04720.49
5.6.180.0470.07020.39
5.6.170.0270.07320.61
5.6.160.0070.08320.55
5.6.150.0030.08318.11
5.6.140.0000.04718.21
5.6.130.0100.07718.18
5.6.120.0130.08021.02
5.6.110.0070.06020.96
5.6.100.0070.08021.14
5.6.90.0030.09020.97
5.6.80.0200.06720.38
5.6.70.3670.03320.54
5.5.350.0100.07720.49
5.5.340.0030.07317.88
5.5.330.0030.04320.23
5.5.320.0000.04320.32
5.5.310.0230.08320.36
5.5.300.0030.05317.98
5.5.290.0100.05318.02
5.5.280.0100.04020.89
5.5.270.0070.06320.84
5.5.260.0070.07020.87
5.5.250.0130.07720.59
5.5.240.0070.07320.36
5.4.450.0270.04719.47
5.4.440.0070.03719.41
5.4.430.0400.04719.23
5.4.420.0330.05319.54
5.4.410.0100.06718.92
5.4.400.0130.05318.72
5.4.390.0100.05718.57
5.4.380.0230.04718.60
5.4.370.0400.05318.59
5.4.360.0370.06018.71
5.4.350.0200.06318.73
5.4.340.0270.05018.59
5.4.320.0090.04212.50
5.4.310.0060.04212.49
5.4.300.0050.03912.49
5.4.290.0080.04112.49
5.4.280.0050.04012.39
5.4.270.0070.04312.39
5.4.260.0080.04012.39
5.4.250.0020.05012.39
5.4.240.0070.03912.39
5.4.230.0060.04012.38
5.4.220.0050.04612.38
5.4.210.0080.04012.38
5.4.200.0050.04412.38
5.4.190.0170.04112.38
5.4.180.0180.04012.37
5.4.170.0300.08812.39
5.4.160.0180.05312.38
5.4.150.0160.04712.37
5.4.140.0150.04512.05
5.4.130.0160.04512.05
5.4.120.0140.04212.00
5.4.110.0170.03912.00
5.4.100.0170.04012.00
5.4.90.0130.04412.00
5.4.80.0140.04312.00
5.4.70.0130.04311.99
5.4.60.0090.04712.00
5.4.50.0130.04312.00
5.4.40.0130.04311.98
5.4.30.0180.03911.98
5.4.20.0190.06711.98
5.4.10.0200.06611.98
5.4.00.0140.04111.48
5.3.290.0070.04512.80
5.3.280.0060.04112.71
5.3.270.0160.04412.72
5.3.260.0140.04712.72
5.3.250.0220.06812.72
5.3.240.0140.04512.72
5.3.230.0150.04512.71
5.3.220.0160.04312.68
5.3.210.0140.04612.68
5.3.200.0150.04412.68
5.3.190.0240.06612.68
5.3.180.0160.04312.68
5.3.170.0160.04312.67
5.3.160.0330.08912.67
5.3.150.0140.04512.68
5.3.140.0170.04212.66
5.3.130.0180.04212.65
5.3.120.0270.06312.66
5.3.110.0170.04312.66
5.3.100.0110.04812.12
5.3.90.0100.04712.10
5.3.80.0130.04612.09
5.3.70.0160.04312.09
5.3.60.0100.04912.07
5.3.50.0400.07912.03
5.3.40.0190.04012.02
5.3.30.0130.04412.00
5.3.20.0400.07811.77
5.3.10.0180.03811.73
5.3.00.0150.04311.71
5.2.170.0120.0359.22
5.2.160.0120.0359.21
5.2.150.0180.0609.21
5.2.140.0120.0369.21
5.2.130.0190.0309.18
5.2.120.0120.0359.18
5.2.110.0120.0359.18
5.2.100.0140.0329.18
5.2.90.0130.0359.18
5.2.80.0160.0319.17
5.2.70.0110.0369.17
5.2.60.0210.0569.13
5.2.50.0130.0349.12
5.2.40.0110.0369.10
5.2.30.0150.0339.07
5.2.20.0140.0359.07
5.2.10.0170.0338.99
5.2.00.0160.0358.84
5.1.60.0090.0328.11
5.1.50.0070.0368.11
5.1.40.0100.0308.09
5.1.30.0120.0318.43
5.1.20.0190.0248.46
5.1.10.0160.0338.18
5.1.00.0110.0318.18
5.0.50.0140.0226.66
5.0.40.0080.0256.52
5.0.30.0110.0356.34
5.0.20.0260.0386.31
5.0.10.0090.0246.29
5.0.00.0060.0386.28
4.4.90.0070.0184.78
4.4.80.0070.0184.75
4.4.70.0090.0184.75
4.4.60.0080.0174.76
4.4.50.0080.0174.77
4.4.40.0070.0294.70
4.4.30.0060.0194.76
4.4.20.0100.0174.85
4.4.10.0090.0174.85
4.4.00.0090.0274.76
4.3.110.0090.0164.67
4.3.100.0070.0194.67
4.3.90.0070.0174.63
4.3.80.0100.0264.58
4.3.70.0090.0154.63
4.3.60.0070.0174.62
4.3.50.0060.0194.63
4.3.40.0070.0314.54
4.3.30.0070.0183.30
4.3.20.0060.0193.28
4.3.10.0090.0233.24
4.3.00.0170.01713.57

preferences:
76 ms | 401 KiB | 5 Q