3v4l.org

run code in 300+ PHP versions simultaneously
<?php $implementation = new DOMImplementation(); $dtd = $implementation->createDocumentType('html'); $doc = $implementation->createDocument('', '', $dtd); $root = $doc->appendChild($doc->createElement('html')); $head = $root->appendChild($doc->createElement('head')); $meta = $head->appendChild($doc->createElement('meta')); $meta->appendChild($doc->createAttribute('http-equiv'))->appendChild($doc->createTextNode('Content-Type')); $meta->appendChild($doc->createAttribute('content'))->appendChild($doc->createTextNode('text/html; charset=UTF-8')); $title = $head->appendChild($doc->createElement('title')); $title->appendChild($doc->createTextNode('This is the title')); $body = $root->appendChild($doc->createElement('body')); $class = $body->appendChild($doc->createAttribute('class')); $class->appendChild($doc->createTextNode('no-js')); $doc->formatOutput = FALSE; echo $doc->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.00618.43
8.3.50.0060.01221.20
8.3.40.0120.00618.93
8.3.30.0070.00720.48
8.3.20.0070.00020.37
8.3.10.0080.00022.21
8.3.00.0060.00322.76
8.2.180.0070.00716.35
8.2.170.0100.01022.96
8.2.160.0060.00922.42
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00326.16
8.2.120.0080.00020.85
8.2.110.0060.00322.28
8.2.100.0080.00417.84
8.2.90.0060.00319.48
8.2.80.0050.00319.34
8.2.70.0050.00317.63
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0070.00019.53
8.2.20.0030.00517.91
8.2.10.0040.00417.77
8.2.00.0000.00717.74
8.1.280.0100.00725.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0040.00424.10
8.1.230.0040.00719.37
8.1.220.0030.00517.80
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0040.00417.75
8.1.180.0040.00419.26
8.1.170.0040.00418.46
8.1.160.0040.00418.98
8.1.150.0000.00718.77
8.1.140.0050.00317.57
8.1.130.0070.00018.03
8.1.120.0040.00417.50
8.1.110.0030.00517.48
8.1.100.0000.00717.60
8.1.90.0040.00317.62
8.1.80.0000.00717.51
8.1.70.0000.00717.57
8.1.60.0030.00617.75
8.1.50.0030.00617.68
8.1.40.0000.00917.56
8.1.30.0000.00717.70
8.1.20.0040.00417.72
8.1.10.0000.00817.84
8.1.00.0000.00817.72
8.0.300.0000.00718.77
8.0.290.0000.00717.17
8.0.280.0030.00318.63
8.0.270.0000.00717.44
8.0.260.0030.00316.91
8.0.250.0070.00017.16
8.0.240.0040.00417.05
8.0.230.0030.00317.09
8.0.220.0080.00016.94
8.0.210.0040.00416.89
8.0.200.0030.00316.97
8.0.190.0000.00717.00
8.0.180.0000.00717.04
8.0.170.0000.00916.98
8.0.160.0070.00016.99
8.0.150.0070.00317.00
8.0.140.0070.00016.89
8.0.130.0000.00513.48
8.0.120.0000.00816.92
8.0.110.0030.00517.05
8.0.100.0040.00416.98
8.0.90.0030.00517.09
8.0.80.0080.00817.05
8.0.70.0030.00516.82
8.0.60.0040.00417.00
8.0.50.0070.00016.88
8.0.30.0080.01017.29
8.0.20.0050.01417.46
8.0.10.0000.00717.12
8.0.00.0160.00316.76
7.4.330.0030.00315.00
7.4.320.0080.00016.68
7.4.300.0030.00316.60
7.4.290.0030.00316.68
7.4.280.0070.00016.77
7.4.270.0030.00316.67
7.4.260.0050.00013.37
7.4.250.0040.00416.46
7.4.240.0040.00316.67
7.4.230.0070.00016.80
7.4.220.0140.00316.74
7.4.210.0070.00716.64
7.4.200.0030.00316.82
7.4.190.0030.00416.58
7.4.160.0070.01016.52
7.4.150.0080.01117.40
7.4.140.0140.00417.86
7.4.130.0170.00116.67
7.4.120.0150.00516.61
7.4.110.0090.00916.61
7.4.100.0090.00916.56
7.4.90.0140.01116.66
7.4.80.0070.01319.39
7.4.70.0080.01216.73
7.4.60.0070.01016.73
7.4.50.0030.00316.61
7.4.40.0080.00822.77
7.4.30.0170.00016.66
7.4.00.0040.00815.14
7.3.330.0000.00513.26
7.3.320.0050.00013.21
7.3.310.0000.00816.34
7.3.300.0030.00316.39
7.3.290.0150.00016.42
7.3.280.0050.01116.39
7.3.270.0140.00417.40
7.3.260.0070.01116.36
7.3.250.0080.01316.54
7.3.240.0070.01016.47
7.3.230.0090.00616.43
7.3.210.0150.00416.45
7.3.200.0110.01119.39
7.3.190.0140.00716.42
7.3.180.0060.00916.83
7.3.170.0110.00716.61
7.3.160.0060.00916.55
7.3.120.0060.01014.84
7.2.330.0090.00916.75
7.2.320.0090.01316.80
7.2.310.0120.00616.91
7.2.300.0150.00616.94
7.2.290.0140.01116.63
7.2.60.0060.00616.95
7.2.00.0000.01619.18
7.1.200.0380.00015.40
7.1.100.0030.00918.04
7.1.70.0050.00517.20
7.1.60.0040.00717.22
7.1.50.0040.01417.01
7.1.00.0030.06322.38
7.0.200.0070.00716.91
7.0.140.0070.07022.08
7.0.100.0230.07319.98
7.0.90.0100.08020.11
7.0.80.0030.05019.96
7.0.70.0000.07719.95
7.0.60.0100.07720.11
7.0.50.0130.03320.34
7.0.40.0100.07020.16
7.0.30.0030.05320.18
7.0.20.0100.07720.15
7.0.10.0130.06720.04
7.0.00.0100.07720.20
5.6.280.0100.08720.82
5.6.250.0100.08320.67
5.6.240.0030.09720.75
5.6.230.0130.07720.73
5.6.220.0070.08020.66
5.6.210.0070.04720.64
5.6.200.0130.08021.07
5.6.190.0030.05021.17
5.6.180.0100.08321.16
5.6.170.0100.07721.07
5.6.160.0100.07721.18
5.6.150.0070.06721.16
5.6.140.0070.04721.17
5.6.130.0100.07321.18
5.6.120.0130.07321.16
5.6.110.0030.07721.19
5.6.100.0100.08021.18
5.6.90.0100.08721.08
5.6.80.0030.08020.43
5.6.70.0100.04320.60
5.6.60.0130.07720.46
5.6.50.0100.05020.48
5.6.40.0100.07720.37
5.6.30.0100.05320.52
5.6.20.0030.08320.51
5.6.10.0100.07320.52
5.6.00.0070.06320.56
5.5.380.0070.07720.53
5.5.370.0070.07320.49
5.5.360.0100.06720.54
5.5.350.0070.08320.55
5.5.340.0070.08020.96
5.5.330.0130.07020.82
5.5.320.0000.09720.99
5.5.310.0070.08320.88
5.5.300.0100.06020.92
5.5.290.0130.08320.79
5.5.280.0100.07320.96
5.5.270.0070.09020.87
5.5.260.0070.07720.98
5.5.250.0170.06720.64
5.5.240.0100.07720.21
5.5.230.0170.07320.34
5.5.220.0070.05320.37
5.5.210.0000.04720.26
5.5.200.0030.04720.32
5.5.190.0030.06020.33
5.5.180.0130.07720.30
5.5.160.0100.06720.32
5.5.150.0070.07320.32
5.5.140.0070.07720.27
5.5.130.0070.05720.30
5.5.120.0100.07020.32
5.5.110.0130.07720.30
5.5.100.0130.05320.15
5.5.90.0100.03320.13
5.5.80.0000.04720.17
5.5.70.0070.04020.20
5.5.60.0070.03720.16
5.5.50.0070.03720.12
5.5.40.0070.04720.18
5.5.30.0070.04020.11
5.5.20.0100.03320.14
5.5.10.0030.04720.14
5.5.00.0130.06020.08
5.4.450.0000.08319.45
5.4.440.0070.08019.43
5.4.430.0030.08319.53
5.4.420.0200.06019.19
5.4.410.0070.09319.36
5.4.400.0100.05319.13
5.4.390.0130.05718.91
5.4.380.0030.04719.14
5.4.370.0100.08019.22
5.4.360.0100.07719.09
5.4.350.0030.04719.08
5.4.340.0100.07319.12
5.4.320.0130.06319.19
5.4.310.0070.05719.16
5.4.300.0130.05019.12
5.4.290.0070.07319.14
5.4.280.0070.05019.21
5.4.270.0000.07019.11
5.4.260.0100.07019.12
5.4.250.0070.04719.12
5.4.240.0130.03019.11
5.4.230.0000.04319.13
5.4.220.0130.03019.09
5.4.210.0030.03719.12
5.4.200.0000.04019.08
5.4.190.0070.03719.18
5.4.180.0030.03719.09
5.4.170.0070.04019.10
5.4.160.0130.03019.07
5.4.150.0030.04019.09
5.4.140.0000.04016.44
5.4.130.0030.03316.39
5.4.120.0000.03716.43
5.4.110.0030.03716.52
5.4.100.0030.04016.46
5.4.90.0000.04016.33
5.4.80.0000.04016.36
5.4.70.0100.02716.53
5.4.60.0070.03016.48
5.4.50.0070.03316.30
5.4.40.0000.04016.52
5.4.30.0000.04016.36
5.4.20.0000.03716.35
5.4.10.0100.03016.47
5.4.00.0030.03015.80
5.3.290.0070.06714.66
5.3.280.0030.06314.66
5.3.270.0030.03714.54
5.3.260.0070.03714.52
5.3.250.0030.03714.53
5.3.240.0000.04014.59
5.3.230.0070.04014.50
5.3.220.0070.03314.63
5.3.210.0030.03714.61
5.3.200.0070.03014.64
5.3.190.0030.03714.66
5.3.180.0030.04014.66
5.3.170.0100.03314.66
5.3.160.0030.03714.60
5.3.150.0130.02714.64
5.3.140.0030.04014.64
5.3.130.0000.04014.63
5.3.120.0000.04014.64
5.3.110.0100.03014.63
5.3.100.0070.04713.95
5.3.90.0000.04014.11
5.3.80.0000.04014.09
5.3.70.0070.03314.02
5.3.60.0000.04013.85
5.3.50.0000.04014.03
5.3.40.0070.03314.05
5.3.30.0100.03013.74
5.3.20.0000.03713.75
5.3.10.0070.03013.73
5.3.00.0070.03013.49
5.2.170.0030.03012.30
5.2.160.0030.02712.30
5.2.150.0000.03012.30
5.2.140.0030.02712.30
5.2.130.0030.02712.30
5.2.120.0000.03012.30
5.2.110.0070.02712.30
5.2.100.0030.02712.30
5.2.90.0000.03012.30
5.2.80.0000.03012.30
5.2.70.0000.03012.30
5.2.60.0070.02312.30
5.2.50.0070.02312.30
5.2.40.0070.02312.30
5.2.30.0030.02712.30
5.2.20.0030.03712.30
5.2.10.0030.02012.30
5.2.00.0030.03012.30
5.1.60.0030.02012.30
5.1.50.0030.04712.30
5.1.40.0170.04012.30
5.1.30.0070.04712.30
5.1.20.0030.06012.30
5.1.10.0030.06012.30
5.1.00.0030.05312.30
5.0.50.0030.02312.30
5.0.40.0070.03712.30
5.0.30.0000.05312.30
5.0.20.0030.04312.30
5.0.10.0000.04012.30
5.0.00.0070.06012.30
4.4.90.0030.01312.30
4.4.80.0000.02012.30
4.4.70.0030.01312.30
4.4.60.0030.01012.30
4.4.50.0000.01312.30
4.4.40.0070.04312.30
4.4.30.0070.03312.30
4.4.20.0000.03312.30
4.4.10.0030.02312.30
4.4.00.0000.03012.30
4.3.110.0070.03012.30
4.3.100.0030.01712.30
4.3.90.0070.03012.30
4.3.80.0000.05712.30
4.3.70.0000.02312.30
4.3.60.0000.03012.30
4.3.50.0030.03312.30
4.3.40.0000.05712.30
4.3.30.0000.03312.30
4.3.20.0030.03312.30
4.3.10.0030.03312.30
4.3.00.0000.03012.30

preferences:
40.59 ms | 401 KiB | 5 Q