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', '<b>Lorem ipsum</b>')); $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.0070.01418.80
8.3.50.0050.01321.27
8.3.40.0100.00719.13
8.3.30.0070.00720.64
8.3.20.0080.00020.49
8.3.10.0040.00421.92
8.3.00.0080.00022.63
8.2.180.0060.00917.00
8.2.170.0090.00622.96
8.2.160.0100.00322.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.01026.16
8.2.120.0080.00021.06
8.2.110.0040.00422.50
8.2.100.0030.00917.72
8.2.90.0030.00619.15
8.2.80.0040.00419.39
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0050.00319.67
8.2.20.0040.00417.89
8.2.10.0000.00817.91
8.2.00.0030.00517.91
8.1.280.0060.01025.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00023.88
8.1.230.0000.01119.31
8.1.220.0040.00417.91
8.1.210.0030.00518.77
8.1.200.0000.01217.61
8.1.190.0090.00017.52
8.1.180.0050.00318.96
8.1.170.0030.00518.70
8.1.160.0040.00420.77
8.1.150.0050.00218.75
8.1.140.0040.00417.63
8.1.130.0000.00718.06
8.1.120.0000.00817.61
8.1.110.0030.00617.52
8.1.100.0000.00817.63
8.1.90.0040.00417.59
8.1.80.0030.00317.64
8.1.70.0000.00717.55
8.1.60.0030.00617.64
8.1.50.0030.00617.72
8.1.40.0030.00617.74
8.1.30.0030.00517.83
8.1.20.0030.00517.88
8.1.10.0000.00817.70
8.1.00.0000.00817.67
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0080.00018.54
8.0.270.0000.00717.40
8.0.260.0040.00417.05
8.0.250.0030.00317.16
8.0.240.0050.00317.20
8.0.230.0030.00317.13
8.0.220.0030.00317.07
8.0.210.0030.00317.07
8.0.200.0040.00417.10
8.0.190.0000.00717.14
8.0.180.0000.00817.14
8.0.170.0080.00017.01
8.0.160.0000.00716.99
8.0.150.0050.00517.01
8.0.140.0040.00416.98
8.0.130.0050.00013.47
8.0.120.0030.00516.93
8.0.110.0040.00417.07
8.0.100.0030.00517.00
8.0.90.0100.00017.07
8.0.80.0080.00816.98
8.0.70.0040.00417.21
8.0.60.0000.00717.03
8.0.50.0000.00817.13
8.0.30.0080.01317.29
8.0.20.0120.00617.50
8.0.10.0040.00417.21
8.0.00.0180.00216.74
7.4.330.0020.00215.00
7.4.320.0040.00416.64
7.4.300.0060.00016.61
7.4.290.0030.00316.82
7.4.280.0080.00016.72
7.4.270.0030.00316.76
7.4.260.0030.00313.41
7.4.250.0020.00516.53
7.4.240.0050.00216.61
7.4.230.0000.00716.74
7.4.220.0130.00716.63
7.4.210.0080.00816.72
7.4.200.0050.00316.75
7.4.190.0030.00316.59
7.4.160.0200.00316.48
7.4.150.0030.01517.40
7.4.140.0110.01017.86
7.4.130.0070.01116.71
7.4.120.0090.01016.60
7.4.110.0060.01216.74
7.4.100.0100.00716.61
7.4.90.0060.01216.76
7.4.80.0070.01019.39
7.4.70.0120.00916.64
7.4.60.0080.00816.47
7.4.50.0030.00616.71
7.4.40.0060.00622.77
7.4.30.0100.01316.58
7.4.00.0070.01014.85
7.3.330.0050.00013.21
7.3.320.0000.00513.27
7.3.310.0040.00416.41
7.3.300.0000.00716.50
7.3.290.0120.00316.48
7.3.280.0100.00716.41
7.3.270.0070.01017.40
7.3.260.0140.00316.57
7.3.250.0100.00816.72
7.3.240.0170.00516.73
7.3.230.0100.00716.76
7.3.210.0090.00916.48
7.3.200.0120.00919.39
7.3.190.0170.00016.50
7.3.180.0070.01016.47
7.3.170.0060.01016.55
7.3.160.0090.00616.48
7.3.120.0100.00614.65
7.3.110.0030.01015.03
7.3.100.0070.00715.11
7.3.90.0030.00614.70
7.3.80.0040.01114.90
7.3.70.0090.00414.95
7.3.60.0070.00714.94
7.3.50.0060.00314.64
7.3.40.0090.00014.99
7.3.30.0030.01314.89
7.3.20.0130.00316.79
7.3.10.0090.00916.84
7.3.00.0060.01016.36
7.2.330.0090.00916.94
7.2.320.0130.00716.66
7.2.310.0090.00916.79
7.2.300.0030.01316.57
7.2.290.0120.01217.04
7.2.250.0110.00715.15
7.2.240.0100.01014.99
7.2.230.0030.01014.97
7.2.220.0030.01315.04
7.2.210.0090.00014.98
7.2.200.0030.00715.05
7.2.190.0060.01215.14
7.2.180.0070.00714.90
7.2.170.0070.00715.25
7.2.130.0050.01016.76
7.2.120.0060.01016.57
7.2.110.0140.00716.41
7.2.100.0070.01316.58
7.2.90.0110.00716.78
7.2.80.0110.00816.79
7.2.70.0140.00716.57
7.2.60.0100.01216.55
7.2.50.0140.01016.74
7.2.40.0100.00816.73
7.2.30.0100.01116.96
7.2.20.0140.00616.61
7.2.10.0130.01016.93
7.2.00.0130.00617.61
7.1.330.0030.01215.70
7.1.320.0060.00915.85
7.1.310.0000.01015.95
7.1.300.0080.00615.46
7.1.290.0040.00415.79
7.1.280.0110.00715.88
7.1.270.0070.01015.87
7.1.260.0060.00615.69
7.1.250.0100.00615.40
7.1.100.0060.00318.24
7.1.70.0000.00717.03
7.1.60.0130.01319.32
7.1.50.0070.01416.80
7.1.00.0070.06722.44
7.0.200.0040.00417.04
7.0.140.0070.07022.04
7.0.90.0400.07319.91
7.0.80.0470.07019.89
7.0.70.0370.04720.08
7.0.60.0430.07020.13
7.0.50.0500.07320.40
7.0.40.0000.08720.22
7.0.30.0170.04320.17
7.0.20.0000.04720.18
7.0.10.0000.08320.21
7.0.00.0100.08720.15
5.6.280.0030.07021.03
5.6.230.0070.05320.70
5.6.220.0070.06320.63
5.6.210.0170.06320.72
5.6.200.0100.08321.07
5.6.190.0070.07021.15
5.6.180.0130.07021.00
5.6.170.0100.04021.20
5.6.160.0270.02721.14
5.6.150.0070.08721.16
5.6.140.0130.07021.00
5.6.130.0100.07720.97
5.6.120.0100.08021.09
5.6.110.0100.08321.14
5.6.100.0130.07321.05
5.6.90.0070.08321.10
5.6.80.0030.04020.51
5.6.70.0130.07020.50
5.6.60.0130.05720.35
5.6.50.0070.07720.54
5.6.40.0170.07320.43
5.6.30.0070.08020.55
5.6.20.0070.08020.41
5.6.10.0070.08020.40
5.6.00.0070.07720.42
5.5.370.0070.05720.59
5.5.360.0070.05720.38
5.5.350.0100.04020.41
5.5.340.0000.08020.70
5.5.330.0100.07320.70
5.5.320.0130.07020.98
5.5.310.0030.08020.93
5.5.300.0100.04720.87
5.5.290.0070.05320.69
5.5.280.0130.08020.95
5.5.270.0100.08020.94
5.5.260.0170.06320.94
5.5.250.0030.08320.79
5.5.240.0100.08020.34
5.5.230.0100.08020.33
5.5.220.0100.06720.18
5.5.210.0170.06320.31
5.5.200.0100.06320.33
5.5.190.0100.07720.32
5.5.180.0100.08320.30
5.5.160.0100.07320.17
5.5.150.0100.07320.13
5.5.140.0070.06020.22
5.5.130.0070.04320.15
5.5.120.0030.06720.30
5.5.110.0100.05020.32
5.5.100.0000.06320.12
5.5.90.0030.07720.21
5.5.80.0070.03320.18
5.5.70.0070.03720.11
5.5.60.0200.06319.98
5.5.50.0100.04720.20
5.5.40.0070.06720.17
5.5.30.0070.05020.19
5.5.20.0070.03719.95
5.5.10.0070.07720.13
5.5.00.0030.06320.14
5.4.450.0130.04719.50
5.4.440.0100.07719.29
5.4.430.0070.07319.42
5.4.420.0070.04319.45
5.4.410.0130.05319.21
5.4.400.0070.07719.22
5.4.390.0100.04718.88
5.4.380.0130.06719.11
5.4.370.0000.08319.21
5.4.360.0100.07318.86
5.4.350.0130.07019.12
5.4.340.0100.08019.14
5.4.320.0100.07719.29
5.4.310.0030.04319.09
5.4.300.0000.04719.13
5.4.290.0100.03719.13
5.4.280.0000.05019.09
5.4.270.0000.04018.96
5.4.260.0070.05019.09
5.4.250.0030.03719.18
5.4.240.0130.06719.09
5.4.230.0100.07019.21
5.4.220.0000.05019.18
5.4.210.0070.06718.85
5.4.200.0070.03719.12
5.4.190.0070.06319.13
5.4.180.0170.07019.18
5.4.170.0070.07719.17
5.4.160.0070.07718.83
5.4.150.0200.06718.99
5.4.140.0030.06716.48
5.4.130.0130.07016.45
5.4.120.0100.07016.24
5.4.110.0070.06716.47
5.4.100.0100.04716.30
5.4.90.0000.05316.54
5.4.80.0130.06316.42
5.4.70.0200.06716.48
5.4.60.0170.03316.25
5.4.50.0070.07316.45
5.4.40.0000.07716.40
5.4.30.0030.05316.36
5.4.20.0000.07316.29
5.4.10.0070.07316.24
5.4.00.0070.06015.57
5.3.290.0100.05314.75
5.3.280.0070.06714.66
5.3.270.0100.06714.67
5.3.260.0030.08014.69
5.3.250.0070.07714.64
5.3.240.0070.07014.64
5.3.230.0070.07714.68
5.3.220.0030.07714.64
5.3.210.0030.08014.63
5.3.200.0100.07014.63
5.3.190.0100.07314.47
5.3.180.0100.06714.48
5.3.170.0070.07714.62
5.3.160.0100.07014.60
5.3.150.0000.04714.55
5.3.140.0070.06314.63
5.3.130.0070.07314.61
5.3.120.0170.07014.64
5.3.110.0130.04314.56
5.3.100.0100.04714.13
5.3.90.0070.04314.10
5.3.80.0130.05314.10
5.3.70.0030.05013.85
5.3.60.0070.07014.09
5.3.50.0070.07013.93
5.3.40.0170.05713.80
5.3.30.0030.05013.98
5.3.20.0070.07013.77
5.3.10.0070.05713.72
5.3.00.0030.06013.58
5.2.170.0000.06713.54
5.2.160.0030.05313.54
5.2.150.0030.06713.54
5.2.140.0070.06713.54
5.2.130.0070.05313.54
5.2.120.0000.04713.54
5.2.110.0000.03313.54
5.2.100.0030.05713.54
5.2.90.0000.06013.54
5.2.80.0070.05013.54
5.2.70.0030.08013.54
5.2.60.0070.06313.54
5.2.50.0030.06013.54
5.2.40.0100.05013.54
5.2.30.0000.03713.54
5.2.20.0000.05013.54
5.2.10.0070.04313.54
5.2.00.0000.04013.54
5.1.60.0000.05313.54
5.1.50.0070.02313.54
5.1.40.0030.03313.54
5.1.30.0070.02313.54
5.1.20.0070.05013.54
5.1.10.0000.02713.54
5.1.00.0070.05013.54
5.0.50.0030.02013.54
5.0.40.0070.04313.54
5.0.30.0100.06313.54
5.0.20.0030.04313.54
5.0.10.0000.04013.54
5.0.00.0030.06713.54
4.4.90.0070.03013.54
4.4.80.0030.04013.54
4.4.70.0070.03313.54
4.4.60.0030.03313.54
4.4.50.0070.02013.54
4.4.40.0000.05013.54
4.4.30.0130.02313.54
4.4.20.0000.01713.54
4.4.10.0000.02713.54
4.4.00.0070.05013.54
4.3.110.0000.03713.54
4.3.100.0000.03713.54
4.3.90.0070.03013.54
4.3.80.0070.04713.54
4.3.70.0000.03313.54
4.3.60.0000.02713.54
4.3.50.0000.03013.54
4.3.40.0070.02713.54
4.3.30.0000.02313.54
4.3.20.0000.01713.54
4.3.10.0000.03713.54
4.3.00.0030.02313.54

preferences:
42.49 ms | 401 KiB | 5 Q