3v4l.org

run code in 300+ PHP versions simultaneously
<?php $htmlString = '<html><head><script>wohoo</script></head><body><script>test</script></body></html>'; $dom = new DOMDocument; $dom->loadHTML($htmlString); $xPath = new DOMXPath($dom); $nodes = $xPath->query('//script'); foreach($nodes as $node) { $node->parentNode->removeChild($node); } 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.60.0110.01118.57
8.3.50.0150.00918.39
8.3.40.0030.01218.81
8.3.30.0040.01119.14
8.3.20.0080.00019.39
8.3.10.0030.00622.27
8.3.00.0040.00421.27
8.2.180.0070.01117.13
8.2.170.0150.00022.96
8.2.160.0070.00722.63
8.2.150.0080.00024.18
8.2.140.0090.00924.66
8.2.130.0040.00420.33
8.2.120.0040.00426.35
8.2.110.0130.00720.78
8.2.100.0000.01118.16
8.2.90.0000.00818.22
8.2.80.0030.00518.41
8.2.70.0030.00918.18
8.2.60.0000.00918.41
8.2.50.0060.00318.10
8.2.40.0040.00422.64
8.2.30.0030.00619.55
8.2.20.0040.00418.36
8.2.10.0050.00218.52
8.2.00.0050.00318.39
8.1.280.0150.00625.92
8.1.270.0080.00022.56
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0120.00022.45
8.1.230.0090.00324.28
8.1.220.0050.00318.13
8.1.210.0000.00919.04
8.1.200.0040.00417.60
8.1.190.0030.00617.60
8.1.180.0030.00518.10
8.1.170.0060.00318.87
8.1.160.0070.00019.23
8.1.150.0070.00019.24
8.1.140.0040.00422.45
8.1.130.0050.00320.47
8.1.120.0030.00317.84
8.1.110.0040.00417.89
8.1.100.0040.00617.74
8.1.90.0030.00417.86
8.1.80.0060.00317.86
8.1.70.0000.01017.75
8.1.60.0030.00517.97
8.1.50.0000.00817.95
8.1.40.0000.01017.91
8.1.30.0040.00417.98
8.1.20.0030.00717.90
8.1.10.0000.00717.97
8.1.00.0000.00817.88
8.0.300.0040.00421.90
8.0.290.0030.00517.00
8.0.280.0030.00318.77
8.0.270.0000.00717.67
8.0.260.0040.00418.68
8.0.250.0070.00017.35
8.0.240.0030.00317.25
8.0.230.0000.00717.33
8.0.220.0050.00317.29
8.0.210.0060.00017.21
8.0.200.0080.00017.36
8.0.190.0000.00817.23
8.0.180.0050.00317.17
8.0.170.0060.00317.26
8.0.160.0000.00717.27
8.0.150.0060.00617.25
8.0.140.0030.00317.25
8.0.130.0000.00613.70
8.0.120.0040.00417.27
8.0.110.0070.00017.27
8.0.100.0040.00417.32
8.0.90.0030.00517.13
8.0.80.0090.00917.23
8.0.70.0000.00717.30
8.0.60.0040.00417.03
8.0.50.0040.00417.29
8.0.30.0100.00717.48
8.0.20.0080.01117.40
8.0.10.0000.00817.42
8.0.00.0120.00717.00
7.4.330.0050.00015.55
7.4.320.0030.00316.89
7.4.300.0060.00017.00
7.4.290.0030.00316.83
7.4.280.0040.00416.77
7.4.270.0000.00816.80
7.4.260.0080.00017.01
7.4.250.0040.00416.87
7.4.240.0000.00716.84
7.4.230.0040.00417.05
7.4.220.0000.00716.72
7.4.210.0050.01117.03
7.4.200.0030.00316.66
7.4.160.0100.00816.74
7.4.140.0100.00717.86
7.4.130.0090.00916.95
7.4.120.0110.00816.94
7.4.110.0090.01516.93
7.4.100.0130.00916.80
7.4.90.0160.00316.75
7.4.80.0100.01019.39
7.4.70.0090.00916.80
7.4.60.0100.00716.65
7.4.50.0110.00716.57
7.4.40.0060.01316.97
7.4.00.0040.01214.81
7.3.330.0050.00013.40
7.3.320.0050.00013.49
7.3.310.0030.00616.69
7.3.300.0030.00316.50
7.3.290.0070.00016.52
7.3.280.0050.01216.63
7.3.260.0080.00916.75
7.3.240.0120.01016.71
7.3.230.0030.01916.81
7.3.210.0080.00816.63
7.3.200.0120.00316.89
7.3.190.0130.00616.80
7.3.180.0110.01116.71
7.3.170.0140.00716.95
7.3.160.0100.01316.82
7.2.330.0130.00717.17
7.2.320.0000.01516.87
7.2.310.0090.00617.22
7.2.300.0140.01016.94
7.2.290.0100.00717.07
7.2.120.1490.00714.82
7.2.110.1540.00714.91
7.2.100.1240.00714.77
7.2.90.1550.00314.71
7.2.80.1770.00714.63
7.2.70.1160.01715.11
7.2.60.0540.00015.34
7.2.50.0190.01114.96
7.2.40.0650.01014.88
7.2.30.1060.00714.93
7.2.20.1350.01015.09
7.2.10.1450.01315.00
7.2.00.1580.01015.32
7.1.240.1180.00713.93
7.1.230.1730.00713.95
7.1.220.1430.00314.05
7.1.210.1320.00114.02
7.1.200.0960.01013.88
7.1.190.0770.00613.75
7.1.180.0220.00313.90
7.1.170.0340.00313.75
7.1.160.1500.01013.84
7.1.150.1360.01014.00
7.1.140.2170.01313.93
7.1.130.0850.01314.08
7.1.120.1260.00313.92
7.1.110.1370.00613.74
7.1.100.1630.01013.95
7.1.90.1840.00614.21
7.1.80.2160.00313.95
7.1.70.1530.00913.80
7.1.60.1140.01214.06
7.1.50.2040.01714.09
7.1.40.1220.00313.66
7.1.30.1170.01013.66
7.1.20.0970.01014.10
7.1.10.1310.01013.74
7.1.00.1480.00914.29
5.6.380.0050.00914.37

preferences:
75.4 ms | 400 KiB | 5 Q