3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createNodesFromHTML(DOMDocument $doc,$str) { $nodes = array(); $d = new DOMDocument(); $d->loadHTML("<html>{$str}</html>"); $child = $d->documentElement->firstChild; while($child) { $nodes[] = $doc->importNode($child,true); $child = $child->nextSibling; } return $nodes; } $dom = new DOMDocument(); $icon = '<i class="fa fa-remove"></i>'; $button = $dom->createElement('a'); $button->setAttribute('href', '/offline-bcu/delete/12345'); $button->setAttribute('class', 'ml5 mr5 btn btn-sm btn-danger'); $nodes = createNodesFromHTML($dom, $icon); $button->appendChild($nodes[0]); $dom->appendChild($button); echo $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.70.0150.00316.75
8.3.60.0140.00716.75
8.3.50.0110.00722.24
8.3.40.0120.00619.21
8.3.30.0080.00819.10
8.3.20.0040.00419.23
8.3.10.0000.00822.02
8.3.00.0040.00422.52
8.2.190.0120.00316.63
8.2.180.0070.00716.75
8.2.170.0120.00322.96
8.2.160.0130.00019.76
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00822.34
8.2.120.0040.00426.35
8.2.110.0070.00419.44
8.2.100.0120.00018.16
8.2.90.0030.00519.46
8.2.80.0040.00417.97
8.2.70.0080.00017.88
8.2.60.0030.00618.30
8.2.50.0000.00818.10
8.2.40.0040.00422.45
8.2.30.0040.00419.62
8.2.20.0060.00317.95
8.2.10.0000.00818.30
8.2.00.0000.00817.99
8.1.280.0150.00625.92
8.1.270.0050.00324.05
8.1.260.0060.00328.09
8.1.250.0000.00828.09
8.1.240.0070.01119.73
8.1.230.0040.00817.91
8.1.220.0000.00917.90
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0070.00617.23
8.1.180.0080.00018.10
8.1.170.0050.00318.85
8.1.160.0040.00422.42
8.1.150.0040.00418.98
8.1.140.0040.00419.68
8.1.130.0030.00317.80
8.1.120.0040.00417.68
8.1.110.0030.00517.66
8.1.100.0080.00017.64
8.1.90.0000.00717.64
8.1.80.0040.00417.66
8.1.70.0030.00317.56
8.1.60.0000.00717.88
8.1.50.0040.00417.68
8.1.40.0040.00417.76
8.1.30.0040.00417.83
8.1.20.0040.00417.79
8.1.10.0050.00217.90
8.1.00.0050.00317.66
8.0.300.0000.00718.77
8.0.290.0070.00017.00
8.0.280.0070.00018.63
8.0.270.0020.00517.16
8.0.260.0070.00017.14
8.0.250.0000.00717.32
8.0.240.0030.00317.24
8.0.230.0030.00317.23
8.0.220.0000.00717.25
8.0.210.0050.00317.13
8.0.200.0040.00417.22
8.0.190.0040.00417.16
8.0.180.0040.00417.17
8.0.170.0040.00417.17
8.0.160.0040.00417.28
8.0.150.0080.00017.21
8.0.140.0030.00617.12
8.0.130.0000.00713.61
8.0.120.0030.00517.11
8.0.110.0000.00717.19
8.0.100.0040.00417.01
8.0.90.0040.00417.06
8.0.80.0090.00617.13
8.0.70.0000.00917.25
8.0.60.0040.00417.16
8.0.50.0040.00417.06
8.0.30.0100.00917.27
8.0.20.0090.00917.45
8.0.10.0070.00017.25
8.0.00.0070.01016.91
7.4.330.0030.00315.24
7.4.320.0030.00316.83
7.4.300.0070.00016.76
7.4.290.0000.00716.82
7.4.280.0080.00316.80
7.4.270.0000.00716.83
7.4.260.0070.00016.71
7.4.250.0050.00316.77
7.4.240.0040.00416.86
7.4.230.0000.00716.89
7.4.220.0120.01216.90
7.4.210.0000.01516.80
7.4.200.0030.00316.50
7.4.160.0070.01116.67
7.4.150.0070.01317.40
7.4.140.0130.00617.86
7.4.130.0090.00816.85
7.4.120.0120.00816.60
7.4.110.0090.00916.73
7.4.100.0110.00716.52
7.4.90.0100.00716.62
7.4.80.0070.01119.39
7.4.70.0120.00816.76
7.4.60.0060.00916.88
7.4.50.0070.00716.39
7.4.40.0140.00316.65
7.4.30.0100.01316.90
7.4.00.0060.00915.23
7.3.330.0060.00013.47
7.3.320.0030.00313.34
7.3.310.0000.00816.62
7.3.300.0030.00316.62
7.3.290.0050.00916.52
7.3.280.0090.00716.52
7.3.270.0110.00617.40
7.3.260.0100.00816.45
7.3.250.0100.01016.63
7.3.240.0140.00816.45
7.3.230.0030.01416.87
7.3.210.0100.00716.91
7.3.200.0070.01116.66
7.3.190.0120.00416.49
7.3.180.0150.00616.58
7.3.170.0140.00916.60
7.3.160.0070.01016.88
7.2.330.0070.01017.00
7.2.320.0100.01016.96
7.2.310.0100.00717.00
7.2.300.0110.00716.92
7.2.290.0070.01016.95
7.2.60.0070.00716.77
7.2.00.0060.00619.72
7.1.200.0060.00616.02
7.1.100.0060.00618.13
7.1.70.0070.00717.39
7.1.60.0040.00817.30
7.1.00.0000.08022.38
7.0.200.0580.00914.70
7.0.100.0130.06720.27
7.0.90.0100.05720.23
7.0.80.0100.05719.98
7.0.70.0170.04719.98
7.0.60.0130.07020.08
7.0.50.0100.06020.41
7.0.40.0070.05720.50
7.0.30.0070.06020.41
7.0.20.0270.04720.45
7.0.10.0030.06020.38
7.0.00.0070.06320.37
5.6.250.0100.07320.86
5.6.240.0230.04320.72
5.6.230.0170.05320.86
5.6.220.0070.05720.70
5.6.210.0100.05320.74
5.6.200.0100.06021.20
5.6.190.0100.05321.20
5.6.180.0100.05321.11
5.6.170.0070.06721.11
5.6.160.0230.04321.14
5.6.150.0000.06321.20
5.6.140.0030.06021.11
5.6.130.0030.06721.13
5.6.120.0170.07321.23
5.6.110.0130.05321.24
5.6.100.0130.05321.12
5.6.90.0130.05321.09
5.6.80.0170.05020.55
5.6.70.0130.05020.50
5.6.60.0200.04720.63
5.6.50.0170.04720.52
5.6.40.0200.04320.59
5.6.30.0170.04720.48
5.6.20.0070.05720.54
5.6.10.0030.06020.46
5.6.00.0200.04320.46

preferences:
53.56 ms | 401 KiB | 5 Q