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')); $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->saveHTML(); ?>

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.0170.00318.68
8.3.50.0130.00321.39
8.3.40.0070.00719.05
8.3.30.0130.00020.42
8.3.20.0070.00020.59
8.3.10.0040.00422.17
8.3.00.0040.00422.52
8.2.180.0080.01216.63
8.2.170.0110.00422.96
8.2.160.0030.01222.27
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00020.75
8.2.110.0040.00422.13
8.2.100.0060.00617.91
8.2.90.0080.00019.30
8.2.80.0000.00819.46
8.2.70.0050.00317.88
8.2.60.0050.00318.17
8.2.50.0080.00018.07
8.2.40.0050.00318.34
8.2.30.0000.00719.77
8.2.20.0030.00517.84
8.2.10.0040.00417.77
8.2.00.0040.00417.70
8.1.280.0100.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.72
8.1.230.0070.00319.40
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00817.42
8.1.180.0000.00919.26
8.1.170.0050.00318.68
8.1.160.0000.00719.07
8.1.150.0070.00018.81
8.1.140.0040.00417.59
8.1.130.0000.00818.10
8.1.120.0040.00417.67
8.1.110.0020.00517.59
8.1.100.0000.00917.61
8.1.90.0050.00317.59
8.1.80.0000.00717.49
8.1.70.0000.00717.60
8.1.60.0060.00317.70
8.1.50.0040.00417.59
8.1.40.0040.00417.55
8.1.30.0030.00617.75
8.1.20.0000.00817.72
8.1.10.0060.00317.79
8.1.00.0030.00617.62
8.0.300.0040.00418.77
8.0.290.0000.00717.42
8.0.280.0070.00018.61
8.0.270.0070.00017.48
8.0.260.0030.00316.94
8.0.250.0000.00717.25
8.0.240.0050.00517.21
8.0.230.0040.00417.14
8.0.220.0000.00816.95
8.0.210.0030.00317.01
8.0.200.0030.00317.11
8.0.190.0070.00017.09
8.0.180.0030.00717.01
8.0.170.0030.00517.09
8.0.160.0000.00816.93
8.0.150.0060.00317.03
8.0.140.0000.00817.05
8.0.130.0060.00013.57
8.0.120.0030.00616.90
8.0.110.0040.00417.04
8.0.100.0040.00716.76
8.0.90.0040.00417.05
8.0.80.0090.00616.96
8.0.70.0050.00317.13
8.0.60.0000.00717.03
8.0.50.0040.00416.76
8.0.30.0070.01217.34
8.0.20.0170.00317.40
8.0.10.0040.00417.18
8.0.00.0110.00816.86
7.4.330.0020.00215.00
7.4.320.0090.00016.68
7.4.300.0030.00316.74
7.4.290.0030.00316.71
7.4.280.0000.00716.76
7.4.270.0030.00316.63
7.4.260.0000.00613.45
7.4.250.0070.00016.70
7.4.240.0040.00416.73
7.4.230.0000.00816.77
7.4.220.0140.00416.74
7.4.210.0100.00516.72
7.4.200.0000.00716.57
7.4.190.0040.00416.79
7.4.160.0100.00716.44
7.4.150.0070.01517.40
7.4.140.0110.00617.86
7.4.130.0060.01216.64
7.4.120.0070.01116.78
7.4.110.0100.00716.79
7.4.100.0130.00616.56
7.4.90.0110.01116.60
7.4.80.0120.00619.39
7.4.70.0170.00016.63
7.4.60.0030.01416.55
7.4.50.0080.00016.68
7.4.40.0040.01522.77
7.4.30.0110.01116.67
7.4.00.0060.01214.75
7.3.330.0000.00513.25
7.3.320.0030.00313.26
7.3.310.0000.00716.47
7.3.300.0000.00716.41
7.3.290.0030.01016.32
7.3.280.0090.00616.39
7.3.270.0060.01217.40
7.3.260.0140.00316.82
7.3.250.0110.00816.61
7.3.240.0100.00616.71
7.3.230.0070.01016.81
7.3.210.0100.00716.55
7.3.200.0040.01219.39
7.3.190.0070.01116.48
7.3.180.0120.00316.64
7.3.170.0100.00616.71
7.3.160.0060.00916.47
7.3.120.0070.01014.95
7.2.330.0100.00716.72
7.2.320.0060.01216.57
7.2.310.0100.00616.71
7.2.300.0120.00616.86
7.2.290.0100.00717.04
7.2.00.0040.01119.48
7.1.100.0030.01217.70
7.1.70.0030.00516.99
7.1.60.0140.01119.32
7.1.50.0080.00416.90
7.1.00.0070.03022.34
7.0.200.0040.00416.66
7.0.140.0070.06722.23
7.0.100.0330.05320.00
7.0.90.0030.07720.01
7.0.80.0370.08319.96
7.0.70.0230.08719.93
7.0.60.0030.08719.96
7.0.50.0000.09020.43
7.0.40.0100.05020.18
7.0.30.0100.08020.15
7.0.20.0000.05720.09
7.0.10.0070.05020.07
7.0.00.0100.05020.17
5.6.250.0030.07720.67
5.6.240.0070.08020.62
5.6.230.0070.07320.62
5.6.220.0100.08720.72
5.6.210.0070.07020.69
5.6.200.0070.05321.08
5.6.190.0200.06721.11
5.6.180.0030.08721.13
5.6.170.0070.07721.00
5.6.160.0070.09021.10
5.6.150.0130.06721.01
5.6.140.0030.08321.19
5.6.130.0100.07321.16
5.6.120.0070.08321.18
5.6.110.0130.05721.11
5.6.100.0030.07721.01
5.6.90.0070.06321.04
5.6.80.0100.06020.39
5.6.70.0070.08020.47
5.6.60.0070.07720.46
5.6.50.0070.04320.48
5.6.40.0100.05720.53
5.6.30.0070.05720.43
5.6.20.0130.06020.45
5.6.10.0170.06020.54
5.6.00.0070.08020.34
5.5.380.0030.07720.42
5.5.370.0130.06320.54
5.5.360.0130.04020.43
5.5.350.0130.06720.47
5.5.340.0030.08020.92
5.5.330.0030.08720.85
5.5.320.0070.07720.70
5.5.310.0130.06020.93
5.5.300.0030.09020.95
5.5.290.0030.05320.86
5.5.280.0130.08320.96
5.5.270.0100.04320.90
5.5.260.0100.08320.78
5.5.250.0170.07320.78
5.5.240.0100.07320.32
5.5.230.0030.06720.19
5.5.220.0130.07020.34
5.5.210.0200.05320.36
5.5.200.0000.08020.30
5.5.190.0030.07320.14
5.5.180.0070.08320.26
5.5.160.0030.05720.27
5.5.150.0070.07320.04
5.5.140.0130.06720.34
5.5.130.0130.07020.29
5.5.120.0000.08020.34
5.5.110.0100.06720.35
5.5.100.0070.04320.15
5.5.90.0230.06020.14
5.5.80.0000.08019.99
5.5.70.0070.07320.10
5.5.60.0100.07320.02
5.5.50.0030.05720.21
5.5.40.0030.07719.98
5.5.30.0130.07320.00
5.5.20.0070.07320.20
5.5.10.0200.05020.14
5.5.00.0070.04320.03
5.4.450.0070.08019.52
5.4.440.0030.06019.44
5.4.430.0100.07019.50
5.4.420.0030.08319.44
5.4.410.0100.05319.08
5.4.400.0070.07019.14
5.4.390.0030.04719.19
5.4.380.0100.04719.02
5.4.370.0030.08018.87
5.4.360.0130.07719.32
5.4.350.0070.04018.97
5.4.340.0100.05319.19
5.4.320.0130.07019.13
5.4.310.0030.06019.19
5.4.300.0130.07019.11
5.4.290.0070.07718.96
5.4.280.0130.07319.09
5.4.270.0170.07018.88
5.4.260.0030.07719.22
5.4.250.0000.05019.18
5.4.240.0030.08019.01
5.4.230.0070.07719.20
5.4.220.0100.06319.09
5.4.210.0030.08019.16
5.4.200.0070.05019.12
5.4.190.0030.08318.87
5.4.180.0130.06719.13
5.4.170.0100.05719.19
5.4.160.0070.03718.86
5.4.150.0070.06318.86
5.4.140.0070.07716.44
5.4.130.0130.06316.40
5.4.120.0100.06016.24
5.4.110.0030.07316.48
5.4.100.0070.07316.33
5.4.90.0000.06716.43
5.4.80.0070.04316.43
5.4.70.0070.07016.41
5.4.60.0070.06316.41
5.4.50.0200.05316.25
5.4.40.0070.06316.40
5.4.30.0070.06716.35
5.4.20.0170.06016.34
5.4.10.0100.06016.30
5.4.00.0030.08015.78
5.3.290.0100.08015.52
5.3.280.0100.06315.52
5.3.270.0100.07715.52
5.3.260.0000.04315.52
5.3.250.0130.07015.52
5.3.240.0170.06715.52
5.3.230.0100.06015.52
5.3.220.0100.07315.52
5.3.210.0030.08015.52
5.3.200.0100.03715.52
5.3.190.0100.05315.52
5.3.180.0030.06315.52
5.3.170.0170.06715.52
5.3.160.0170.05715.52
5.3.150.0030.08015.52
5.3.140.0070.07715.52
5.3.130.0070.08015.52
5.3.120.0070.08015.52
5.3.110.0070.08315.52
5.3.100.0070.08015.52
5.3.90.0200.06015.52
5.3.80.0030.07315.52
5.3.70.0100.07315.52
5.3.60.0070.07715.52
5.3.50.0030.07015.52
5.3.40.0030.08015.52
5.3.30.0030.08015.52
5.3.20.0070.06715.52
5.3.10.0130.06715.52
5.3.00.0070.07315.52
5.2.170.0070.06315.52
5.2.160.0070.05715.52
5.2.150.0100.06015.52
5.2.140.0070.06315.52
5.2.130.0000.05715.52
5.2.120.0070.06015.52
5.2.110.0100.05715.52
5.2.100.0070.05715.52
5.2.90.0030.04715.52
5.2.80.0000.04715.52
5.2.70.0030.06015.52
5.2.60.0070.06015.52
5.2.50.0130.03015.52
5.2.40.0100.05715.52
5.2.30.0100.03015.52
5.2.20.0070.05015.52
5.2.10.0030.02715.52
5.2.00.0000.03015.52
5.1.60.0070.04015.52
5.1.50.0030.02315.52
5.1.40.0030.02315.52
5.1.30.0070.02315.52
5.1.20.0000.03015.52
5.1.10.0000.02715.52
5.1.00.0030.02315.52
5.0.50.0000.02315.52
5.0.40.0030.02015.52
5.0.30.0030.03015.52
5.0.20.0030.01715.52
5.0.10.0000.02015.52
5.0.00.0000.03015.52
4.4.90.0030.03315.52
4.4.80.0100.03015.52
4.4.70.0000.01715.52
4.4.60.0030.01715.52
4.4.50.0000.01715.52
4.4.40.0000.02715.52
4.4.30.0070.01015.52
4.4.20.0030.01715.52
4.4.10.0030.01315.52
4.4.00.0000.02715.52
4.3.110.0030.01715.52
4.3.100.0030.01315.52
4.3.90.0000.01715.52
4.3.80.0100.01315.52
4.3.70.0000.01715.52
4.3.60.0030.01315.52
4.3.50.0000.01715.52
4.3.40.0030.02015.52
4.3.30.0030.02015.52
4.3.20.0000.01715.52
4.3.10.0000.01715.52
4.3.00.0070.02715.52

preferences:
48.1 ms | 400 KiB | 5 Q