3v4l.org

run code in 300+ PHP versions simultaneously
<?php $imp = new DOMImplementation(); $dom = $imp->createDocument('', '', $imp->createDocumentType('html')); $html = $dom->appendChild(new DOMElement('html')); $head = $html->appendChild(new DOMElement('head')); $meta = $head->appendChild(new DOMElement('meta')); $meta->setAttribute('http-equiv', 'Content-Type'); $meta->setAttribute('content', 'text/html; charset=UTF-8'); $head->appendChild(new DOMElement('title', 'Lorem ipsum')); $body = $html->appendChild(new DOMElement('body')); $body->setAttribute('class', 'no-js'); $dom->formatOutput = FALSE; exit($dom->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.0140.00718.68
8.3.50.0150.00721.33
8.3.40.0070.01119.02
8.3.30.0100.00320.54
8.3.20.0000.00720.50
8.3.10.0040.00422.25
8.3.00.0000.00822.69
8.2.180.0120.00317.00
8.2.170.0140.00022.96
8.2.160.0000.01422.32
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00726.16
8.2.120.0080.00021.05
8.2.110.0030.00619.62
8.2.100.0040.00817.84
8.2.90.0000.00919.30
8.2.80.0050.00317.97
8.2.70.0040.00417.59
8.2.60.0000.00718.05
8.2.50.0030.00618.07
8.2.40.0000.00818.24
8.2.30.0030.00518.14
8.2.20.0050.00317.74
8.2.10.0000.00817.87
8.2.00.0080.00019.57
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.01024.04
8.1.230.0110.00017.96
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0000.00917.47
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0110.00018.58
8.1.160.0030.00619.00
8.1.150.0070.00018.70
8.1.140.0080.00017.65
8.1.130.0000.00817.96
8.1.120.0080.00017.63
8.1.110.0050.00317.52
8.1.100.0020.00517.60
8.1.90.0080.00017.59
8.1.80.0040.00417.52
8.1.70.0030.00317.49
8.1.60.0040.00417.74
8.1.50.0040.00417.68
8.1.40.0040.00417.70
8.1.30.0050.00217.77
8.1.20.0000.00817.92
8.1.10.0000.00817.67
8.1.00.0000.00817.69
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.51
8.0.270.0000.00717.45
8.0.260.0030.00317.08
8.0.250.0030.00317.16
8.0.240.0000.00817.13
8.0.230.0000.00717.13
8.0.220.0000.00717.14
8.0.210.0000.00717.04
8.0.200.0040.00417.04
8.0.190.0050.00217.09
8.0.180.0040.00417.02
8.0.170.0000.00817.04
8.0.160.0040.00417.11
8.0.150.0030.00617.04
8.0.140.0050.00316.96
8.0.130.0030.00313.47
8.0.120.0040.00417.01
8.0.110.0000.00717.06
8.0.100.0050.00316.98
8.0.90.0030.00617.08
8.0.80.0120.00317.08
8.0.70.0050.00317.21
8.0.60.0030.00517.11
8.0.50.0000.00717.21
8.0.30.0130.00817.10
8.0.20.0130.00517.40
8.0.10.0000.00717.30
8.0.00.0080.01316.76
7.4.330.0020.00215.00
7.4.320.0080.00016.68
7.4.300.0050.00216.73
7.4.290.0040.00416.57
7.4.280.0040.00416.77
7.4.270.0000.00716.63
7.4.260.0050.00013.42
7.4.250.0040.00416.64
7.4.240.0020.00516.75
7.4.230.0030.00316.42
7.4.220.0060.01216.77
7.4.210.0080.00816.73
7.4.200.0040.00416.54
7.4.190.0040.00416.79
7.4.160.0030.01316.47
7.4.150.0100.01017.40
7.4.140.0080.00817.86
7.4.130.0100.00716.72
7.4.120.0110.00616.70
7.4.110.0060.01116.73
7.4.100.0040.01416.61
7.4.90.0200.00316.63
7.4.80.0090.01219.39
7.4.70.0060.01016.62
7.4.60.0160.00616.52
7.4.50.0050.00016.66
7.4.40.0030.01322.77
7.4.30.0030.01516.73
7.4.00.0040.00814.89
7.3.330.0060.00013.35
7.3.320.0050.00013.21
7.3.310.0030.00516.47
7.3.300.0030.00316.38
7.3.290.0070.00716.49
7.3.280.0060.00916.50
7.3.270.0160.00317.40
7.3.260.0070.01116.57
7.3.250.0120.00616.65
7.3.240.0070.02116.86
7.3.230.0070.01016.52
7.3.210.0090.00916.67
7.3.200.0130.00619.39
7.3.190.0080.00916.60
7.3.180.0080.00816.51
7.3.170.0150.00316.55
7.3.160.0030.01216.77
7.3.120.0000.01414.94
7.2.330.0040.01316.73
7.2.320.0060.01716.84
7.2.310.0170.00616.71
7.2.300.0040.01316.96
7.2.290.0100.00716.70
7.2.60.0090.00617.11
7.2.00.0100.00319.34
7.1.200.0030.01115.72
7.1.100.0060.00618.25
7.1.70.0000.00717.25
7.1.60.0140.01119.32
7.1.50.0110.01116.84
7.1.00.0000.03722.51
7.0.200.0000.00816.69
7.0.140.0000.07722.14
7.0.100.0070.03321.79
7.0.90.0030.04721.72
7.0.80.0000.07021.73
7.0.70.0030.06321.75
7.0.60.0030.05021.70
7.0.50.0000.04022.16
7.0.40.0000.08020.23
7.0.30.0000.04320.17
7.0.20.0030.04020.09
7.0.10.0030.04020.13
7.0.00.0030.08020.12
5.6.280.0100.06720.95
5.6.250.0000.04720.58
5.6.240.0000.05320.71
5.6.230.0000.06720.65
5.6.220.0070.06320.82
5.6.210.0030.03720.52
5.6.200.0000.06321.23
5.6.190.0030.04021.10
5.6.180.0000.04321.09
5.6.170.0000.04321.10
5.6.160.0000.07021.07
5.6.150.0000.04021.03
5.6.140.0030.04321.10
5.6.130.0000.04321.21
5.6.120.0030.04321.09
5.6.110.0070.03721.16
5.6.100.0100.06321.02
5.6.90.0030.06021.05
5.6.80.0030.05320.37
5.6.70.0030.08320.54
5.6.60.0000.05720.46
5.6.50.0000.04320.61
5.6.40.0030.05020.54
5.6.30.0070.03720.55
5.6.20.0000.04020.54
5.6.10.0030.07020.41
5.6.00.0030.03720.44
5.5.380.0000.07720.40
5.5.370.0000.05720.41
5.5.360.0000.04320.61
5.5.350.0030.07720.54
5.5.340.0000.05020.97
5.5.330.0030.05320.97
5.5.320.0000.04320.86
5.5.310.0030.05020.67
5.5.300.0030.09320.83
5.5.290.0000.04320.98
5.5.280.0000.04320.93
5.5.270.0070.09320.84
5.5.260.0070.03720.94
5.5.250.0000.05020.66
5.5.240.0030.03720.30
5.5.230.0000.04020.31
5.5.220.0000.04020.11
5.5.210.0070.07020.34
5.5.200.0030.03720.33
5.5.190.0030.05020.29
5.5.180.0030.05320.34
5.5.160.0070.03320.31
5.5.150.0030.04020.29
5.5.140.0030.03720.03
5.5.130.0070.04020.03
5.5.120.0030.03720.33
5.5.110.0030.03720.33
5.5.100.0070.03720.21
5.5.90.0000.04020.22
5.5.80.0000.07020.12
5.5.70.0000.04020.06
5.5.60.0070.04020.09
5.5.50.0070.04019.98
5.5.40.0070.04720.16
5.5.30.0000.03720.18
5.5.20.0000.04020.19
5.5.10.0030.09320.05
5.5.00.0000.04020.14
5.4.450.0000.04019.19
5.4.440.0030.04719.21
5.4.430.0000.06719.23
5.4.420.0000.04019.18
5.4.410.0030.05319.38
5.4.400.0000.04019.15
5.4.390.0070.07319.19
5.4.380.0030.03319.10
5.4.370.0030.05019.30
5.4.360.0030.03719.20
5.4.350.0030.05319.10
5.4.340.0070.03719.21
5.4.320.0000.04019.12
5.4.310.0000.04319.30
5.4.300.0000.03719.10
5.4.290.0100.06719.16
5.4.280.0030.04319.10
5.4.270.0000.07718.96
5.4.260.0000.06719.30
5.4.250.0030.04319.16
5.4.240.0030.04019.16
5.4.230.0030.04019.09
5.4.220.0030.05019.09
5.4.210.0000.03718.88
5.4.200.0130.06319.11
5.4.190.0030.04719.09
5.4.180.0030.07319.09
5.4.170.0000.05019.18
5.4.160.0030.06019.19
5.4.150.0000.04719.11
5.4.140.0070.03716.34
5.4.130.0000.03716.41
5.4.120.0030.04716.36
5.4.110.0070.03316.34
5.4.100.0000.06316.38
5.4.90.0000.03716.47
5.4.80.0030.03316.51
5.4.70.0000.03716.38
5.4.60.0000.03316.35
5.4.50.0000.03716.52
5.4.40.0000.04716.52
5.4.30.0070.03316.29
5.4.20.0000.04016.27
5.4.10.0000.03716.33
5.4.00.0030.05715.74
5.3.290.0000.06714.61
5.3.280.0030.03314.52
5.3.270.0030.06014.50
5.3.260.0000.06714.65
5.3.250.0000.04014.69
5.3.240.0030.03314.66
5.3.230.0000.03714.64
5.3.220.0000.05714.66
5.3.210.0000.05014.65
5.3.200.0030.03314.65
5.3.190.0000.06314.50
5.3.180.0030.03714.66
5.3.170.0000.04014.50
5.3.160.0030.04714.50
5.3.150.0000.05314.61
5.3.140.0070.03014.64
5.3.130.0030.04014.62
5.3.120.0000.06714.54
5.3.110.0000.03714.49
5.3.100.0030.03714.13
5.3.90.0000.05713.95
5.3.80.0030.04314.01
5.3.70.0000.05714.11
5.3.60.0000.05013.94
5.3.50.0000.06014.03
5.3.40.0000.05013.89
5.3.30.0000.03713.95
5.3.20.0070.03313.73
5.3.10.0000.03713.73
5.3.00.0070.05313.73
5.2.170.0030.02711.30
5.2.160.0000.03711.22
5.2.150.0000.03011.09
5.2.140.0000.03011.25
5.2.130.0070.05011.10
5.2.120.0030.03311.03
5.2.110.0070.03711.11
5.2.100.0030.03711.22
5.2.90.0000.02711.18
5.2.80.0030.02711.19
5.2.70.0030.02711.20
5.2.60.0030.04311.06
5.2.50.0000.03311.15
5.2.40.0000.04010.92
5.2.30.0000.04011.04
5.2.20.0000.03311.13
5.2.10.0000.02710.89
5.2.00.0030.05010.72
5.1.60.0000.02710.11
5.1.50.0000.02310.12
5.1.40.0000.03710.10
5.1.30.0000.02710.44
5.1.20.0030.06010.51
5.1.10.0030.02010.09
5.1.00.0000.02310.22
5.0.50.0000.0208.65
5.0.40.0000.0438.43
5.0.30.0000.0338.43
5.0.20.0000.0478.43
5.0.10.0070.0308.43
5.0.00.0070.0238.43
4.4.90.0000.0178.43
4.4.80.0000.0208.43
4.4.70.0000.0238.43
4.4.60.0000.0178.43
4.4.50.0030.0378.43
4.4.40.0030.0378.43
4.4.30.0000.0178.43
4.4.20.0000.0308.43
4.4.10.0000.0208.43
4.4.00.0030.0338.43
4.3.110.0000.0178.43
4.3.100.0070.0238.43
4.3.90.0000.0138.43
4.3.80.0030.0478.43
4.3.70.0000.0238.43
4.3.60.0000.0138.43
4.3.50.0000.0278.43
4.3.40.0000.0308.43
4.3.30.0000.0208.43
4.3.20.0100.0278.43
4.3.10.0000.0178.43
4.3.00.0000.0278.43

preferences:
44.68 ms | 401 KiB | 5 Q