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($manfiestNode); //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.0040.01117.00
8.3.50.0250.00716.60
8.3.40.0090.00918.86
8.3.30.0040.01119.04
8.3.20.0040.00419.16
8.3.10.0090.00019.16
8.3.00.0040.00419.63
8.2.180.0150.00318.72
8.2.170.0110.00722.96
8.2.160.0120.00819.07
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0060.00322.10
8.2.100.0080.00417.97
8.2.90.0040.00418.16
8.2.80.0040.00419.23
8.2.70.0080.00018.00
8.2.60.0040.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00819.88
8.2.30.0000.00818.10
8.2.20.0070.00317.92
8.2.10.0030.00617.84
8.2.00.0040.00417.92
8.1.280.0150.00625.92
8.1.270.0050.00323.99
8.1.260.0070.01326.35
8.1.250.0000.00828.09
8.1.240.0060.00322.15
8.1.230.0050.00521.03
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0060.00317.60
8.1.190.0000.00817.47
8.1.180.0080.00018.10
8.1.170.0030.00518.71
8.1.160.0050.00319.29
8.1.150.0050.00218.88
8.1.140.0000.00717.57
8.1.130.0030.00317.81
8.1.120.0000.00717.61
8.1.110.0040.00417.57
8.1.100.0030.00317.68
8.1.90.0030.00517.64
8.1.80.0000.00717.68
8.1.70.0000.00717.61
8.1.60.0070.00417.64
8.1.50.0000.00817.73
8.1.40.0040.00417.64
8.1.30.0060.00317.80
8.1.20.0080.00317.82
8.1.10.0070.00017.82
8.1.00.0030.00517.72
8.0.300.0000.00720.11
8.0.290.0030.00616.88
8.0.280.0030.00318.58
8.0.270.0030.00317.34
8.0.260.0000.00717.11
8.0.250.0000.00717.29
8.0.240.0030.00517.29
8.0.230.0000.00717.23
8.0.220.0030.00317.12
8.0.210.0070.00017.13
8.0.200.0040.00417.21
8.0.190.0040.00417.31
8.0.180.0000.00817.23
8.0.170.0040.00417.11
8.0.160.0040.00417.23
8.0.150.0040.00417.05
8.0.140.0080.00317.15
8.0.130.0030.00313.53
8.0.120.0060.00317.18
8.0.110.0000.00717.20
8.0.100.0040.00416.90
8.0.90.0080.00017.18
8.0.80.0090.01017.14
8.0.70.0070.00017.25
8.0.60.0030.00516.99
8.0.50.0000.00817.17
8.0.30.0060.01017.33
8.0.20.0120.00717.46
8.0.10.0040.00417.20
8.0.00.0080.01117.00
7.4.330.0000.00513.15
7.4.320.0000.00616.81
7.4.300.0000.00716.75
7.4.290.0070.00016.67
7.4.280.0030.00616.66
7.4.270.0030.00316.65
7.4.260.0030.00313.34
7.4.250.0080.00016.66
7.4.240.0030.00316.77
7.4.230.0070.00016.76
7.4.220.0040.01216.89
7.4.210.0040.01116.93
7.4.200.0000.00816.56
7.4.190.0070.00016.65
7.4.160.0150.00616.95
7.4.150.0060.01216.48
7.4.140.0090.00817.02
7.4.130.0110.00816.85
7.4.120.0090.00916.82
7.4.110.0130.00916.82
7.4.100.0050.01316.88
7.4.90.0090.00916.80
7.4.80.0120.00616.58
7.4.70.0070.00816.71
7.4.60.0160.00016.82
7.4.50.0030.00916.77
7.4.40.0050.00516.86
7.4.30.0090.00616.71
7.4.10.0030.01716.35
7.4.00.0110.00515.87
7.3.330.0000.00713.21
7.3.320.0030.00313.21
7.3.310.0000.00816.56
7.3.300.0000.00716.41
7.3.290.0070.00716.51
7.3.280.0060.01516.52
7.3.270.0140.00416.69
7.3.260.0150.00916.67
7.3.250.0120.00616.65
7.3.240.0100.00716.46
7.3.230.0130.00716.54
7.3.210.0170.00516.85
7.3.200.0160.00619.39
7.3.190.0060.01016.67
7.3.180.0060.01016.49
7.3.170.0170.00316.73
7.3.160.0110.01116.51
7.3.130.0100.01016.55
7.3.120.0070.01115.84
7.3.110.0060.00816.66
7.3.100.0060.01316.47
7.3.90.0070.01116.47
7.3.80.0110.00316.55
7.3.70.0000.01516.58
7.3.60.0090.00916.56
7.3.50.0100.00016.49
7.3.40.0060.00616.34
7.3.30.0090.00616.60
7.3.20.0070.00318.27
7.3.10.0060.01118.16
7.3.00.0100.00018.33
7.2.330.0100.01016.92
7.2.320.0100.01217.00
7.2.310.0090.00916.58
7.2.300.0110.01116.64
7.2.290.0150.00917.00
7.2.260.0100.01016.88
7.2.250.0070.01116.98
7.2.240.0070.00816.73
7.2.230.0000.01416.76
7.2.220.0100.00716.81
7.2.210.0060.00916.58
7.2.200.0060.01216.71
7.2.190.0090.00316.72
7.2.180.0100.00316.69
7.2.170.0060.01016.73
7.2.160.0120.00616.52
7.2.150.0090.00918.71
7.2.140.0000.01418.50
7.2.130.0000.01218.50
7.2.120.0000.01318.67
7.2.110.0100.00718.56
7.2.100.0530.01116.76
7.2.90.0990.01016.69
7.2.80.0850.00716.65
7.2.70.0960.00716.74
7.2.60.0910.00716.74
7.2.50.0950.01116.71
7.2.40.0820.00916.82
7.2.30.1000.01016.73
7.2.20.0790.00616.80
7.2.10.1000.00816.69
7.2.00.0920.01116.83
7.1.330.0150.00017.49
7.1.320.0000.01617.54
7.1.310.0060.00617.50
7.1.300.0090.00917.54
7.1.290.0050.00517.36
7.1.280.0090.00617.56
7.1.270.0030.00617.29
7.1.260.0070.00717.43
7.1.250.0000.01317.41
7.1.240.0070.01017.39
7.1.230.0060.01017.39
7.1.220.0930.00615.68
7.1.210.0440.00715.63
7.1.200.1050.00915.71
7.1.190.0860.00715.68
7.1.180.0800.00715.71
7.1.170.0170.01115.58
7.1.160.1000.00815.66
7.1.150.0850.00415.57
7.1.140.0950.01115.60
7.1.130.0460.00515.60
7.1.120.0960.01115.55
7.1.110.1020.01115.74
7.1.100.0700.00715.78
7.1.90.0870.00315.76
7.1.80.0710.00515.53
7.1.70.0670.00515.56
7.1.60.0830.01124.78
7.1.50.0200.00724.68
7.1.40.0570.00524.76
7.1.30.0830.00524.83
7.1.20.0160.01224.81
7.1.10.0290.01015.74
7.1.00.0190.01015.73
7.0.330.0000.01417.08
7.0.320.0040.00717.14
7.0.310.0600.01415.34
7.0.300.0210.00815.44
7.0.290.0990.00515.28
7.0.280.0960.00715.26
7.0.270.0090.00715.35
7.0.260.0890.00915.33
7.0.250.0100.00815.37
7.0.240.0730.00915.32
7.0.230.0670.01015.52
7.0.220.0800.00715.46
7.0.210.0540.00315.31
7.0.200.0670.00815.35
7.0.190.0690.01015.50
7.0.180.0760.00815.34
7.0.170.0640.00715.36
7.0.160.0620.00915.44
7.0.150.0060.01115.44
7.0.140.0180.00715.51
7.0.130.0100.00915.36
7.0.120.0030.01515.38
7.0.110.0140.00315.33
7.0.100.1510.00915.45
7.0.90.0740.00515.33
7.0.80.0630.00815.27
7.0.70.0050.00915.51
7.0.60.0690.00515.21
7.0.50.0090.00715.31
7.0.40.0400.01014.35
7.0.30.0120.00514.51
7.0.20.0800.00614.40
7.0.10.0710.00714.26
7.0.00.0100.00714.44
5.6.400.0030.00916.25
5.6.390.0030.00616.08
5.6.380.0070.00615.32
5.6.370.0070.00615.28
5.6.360.0130.00314.98
5.6.350.0060.00615.18
5.6.340.0130.00015.21
5.6.330.0090.00415.15
5.6.320.0020.01515.18
5.6.310.0060.00815.23
5.6.300.0080.00615.18
5.6.290.0080.00715.31
5.6.280.0070.00915.26
5.6.270.0080.01015.35
5.6.260.0040.01215.30
5.6.250.0020.01415.38
5.6.240.0090.00815.38
5.6.230.0070.00915.24
5.6.220.0090.00915.14
5.6.210.0070.00815.10
5.6.200.0080.00715.36
5.6.190.0070.00615.22
5.6.180.0120.00315.23
5.6.170.0090.00615.22
5.6.160.0090.01015.24
5.6.150.0070.01315.16
5.6.140.0030.01415.23
5.6.130.0090.00715.28
5.6.120.0060.01215.16
5.6.110.0080.00915.25
5.6.100.0100.01015.25
5.6.90.0110.00615.19
5.6.80.0150.00415.16
5.6.70.0080.01015.30
5.6.60.0130.00815.25
5.6.50.0110.00615.12
5.6.40.0050.01315.13
5.6.30.0100.00615.03
5.6.20.0090.00615.27
5.6.10.0070.00915.20
5.6.00.0070.01215.26
5.5.380.0070.00514.39
5.5.370.0040.00914.36
5.5.360.0040.00714.27
5.5.350.0020.00914.25
5.5.340.0110.00214.44
5.5.330.0080.00514.35
5.5.320.0110.00014.27
5.5.310.0080.00514.25
5.5.300.0090.00714.27
5.5.290.0070.00914.28
5.5.280.0060.00914.41
5.5.270.0110.00714.28
5.5.260.0080.00714.32
5.5.250.0100.00414.31
5.5.240.0120.00514.32
5.5.230.0090.00914.29
5.5.220.0070.01214.30
5.5.210.0050.00714.34
5.5.200.0090.00414.28
5.5.190.0040.01014.22
5.5.180.0060.00914.29
5.5.170.0090.00515.12
5.5.160.0060.00814.28
5.5.150.0040.00914.23
5.5.140.0070.00814.28
5.5.130.0030.01114.28
5.5.120.0060.00614.29
5.5.110.0080.00914.26
5.5.100.0090.00714.33
5.5.90.0110.00514.16
5.5.80.0080.00814.34
5.5.70.0060.00914.33
5.5.60.0100.00314.23
5.5.50.0070.00914.22
5.5.40.0070.00914.25
5.5.30.0110.00514.30
5.5.20.0100.00714.32
5.5.10.0050.01114.14
5.5.00.0060.00814.28
5.4.450.0070.00612.66
5.4.440.0080.00512.69
5.4.430.0090.00412.77
5.4.420.0070.01012.66
5.4.410.0090.00512.71
5.4.400.0050.00812.76
5.4.390.0090.00412.58
5.4.380.0090.00612.67
5.4.370.0080.00412.62
5.4.360.0070.00712.73
5.4.350.0050.01012.63
5.4.340.0040.00612.61
5.4.330.0070.00812.54
5.4.320.0040.00912.67
5.4.310.0040.00912.62
5.4.300.0080.00612.70
5.4.290.0040.00812.61
5.4.280.0070.00412.66
5.4.270.0090.00412.65
5.4.260.0080.00612.65
5.4.250.0080.00712.72
5.4.240.0090.00812.69
5.4.230.0040.01112.68
5.4.220.0060.00712.70
5.4.210.0040.00712.63
5.4.200.0060.00712.60
5.4.190.0100.00412.74
5.4.180.0070.00912.65
5.4.170.0070.00412.71
5.4.160.0060.00612.63
5.4.150.0090.00512.62
5.4.140.0120.00212.68
5.4.130.0070.00412.66
5.4.120.0060.00812.64
5.4.110.0080.00512.66
5.4.100.0100.00612.66
5.4.90.0090.00512.56
5.4.80.0060.00612.64
5.4.70.0040.00912.71
5.4.60.0090.00312.67
5.4.50.0050.00712.67
5.4.40.0070.00712.70
5.4.30.0080.00612.65
5.4.20.0050.00812.68
5.4.10.0150.00312.62
5.4.00.0100.00412.64
5.3.290.0070.00313.05
5.3.280.0070.00712.92
5.3.270.0070.00512.95
5.3.260.0040.00912.92
5.3.250.0060.00412.95
5.3.240.0060.00912.90
5.3.230.0040.00912.89
5.3.220.0070.00412.89
5.3.210.0080.00412.86
5.3.200.0110.00412.86
5.3.190.0080.00612.88
5.3.180.0080.00312.91
5.3.170.0030.00912.93
5.3.160.0050.00612.95
5.3.150.0050.00913.09
5.3.140.0080.00612.92
5.3.130.0040.00712.89
5.3.120.0080.00312.86
5.3.110.0050.00612.97
5.3.100.0070.00712.86
5.3.90.0080.00412.91
5.3.80.0090.00212.88
5.3.70.0100.00312.88
5.3.60.0090.00512.87
5.3.50.0040.00912.90
5.3.40.0070.00712.96
5.3.30.0030.01212.84
5.3.20.0070.00212.80
5.3.10.0050.00612.77
5.3.00.0050.00712.77
5.2.170.0100.00312.61
5.2.160.0080.00412.61
5.2.150.0090.00412.61
5.2.140.0060.00312.61
5.2.130.0060.00312.61
5.2.120.0000.00912.61
5.2.110.0040.00412.61
5.2.100.0060.00412.61
5.2.90.0160.00012.61
5.2.80.0000.01112.61
5.2.70.0180.00012.61
5.2.60.0060.00512.61
5.2.50.0070.00412.61
5.2.40.0110.00012.61
5.2.30.0240.00012.61
5.2.20.0080.00012.61
5.2.10.0120.00012.61
5.2.00.0000.01212.61
5.1.60.0060.00412.61
5.1.50.0070.00412.61
5.1.40.0030.00612.61
5.1.30.0090.00012.61
5.1.20.0170.00012.61
5.1.10.0050.00312.61
5.1.00.0080.00012.61
5.0.50.0000.00712.61
5.0.40.0040.00412.61
5.0.30.0040.00212.61
5.0.20.0030.00312.61
5.0.10.0030.00312.61
5.0.00.0050.00212.61
4.4.90.0050.00012.61
4.4.80.0080.00012.61
4.4.70.0050.00012.61
4.4.60.0020.00412.61
4.4.50.0050.00012.61
4.4.40.0040.00412.61
4.4.30.0060.00312.61
4.4.20.0030.00312.61
4.4.10.0050.00012.61
4.4.00.0050.00012.61
4.3.110.0050.00012.61
4.3.100.0000.00512.61
4.3.90.0050.00012.61
4.3.80.0140.00212.61
4.3.70.0040.00212.61
4.3.60.0000.00712.61
4.3.50.0000.00612.61
4.3.40.0050.00012.61
4.3.30.0020.00512.61
4.3.20.0000.00712.61
4.3.10.0020.00512.61
4.3.00.0030.00312.61

preferences:
44.93 ms | 401 KiB | 5 Q