3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<EOT <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>KvK NL - Uittreksel inzien</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="../css/style.css"/> <link rel="stylesheet" type="text/css" href="../css/uittreksel.css"/> <link rel="stylesheet" type="text/css" href="../css/printUittreksel.css" media="print"/> <script type="text/javascript" src="../resources/nl.kvk.hp.web.pages.InzienPage/google-analytics.js"></script> </head> <body class="hrfixed"> <div> </div> <div id="uittrekselWrapper"> <span><?xml version="1.0" encoding="UTF-8"?> <div id="uittreksel"></div></span> </div> <div id="footer"> </div> </body> </html> EOT; define('CONTENT_DOCUMENT_ID', 'uittreksel'); $html = '<?xml version="1.0" encoding="UTF-8"?>' . preg_replace('/(<\?xml[^!\?>]+\?>)/msi','', $html); try { $xml = new DOMDocument('1.0', 'UTF-8'); $xml->loadHTML($html); } catch (DOMException $e) { throw new exception('Document could not be generated, no html found'); } // get the part of the document we need $xpath = new DOMXPath($xml); if (!($content = $xpath->query("//*[@id='" . CONTENT_DOCUMENT_ID . "']")->item(0))) { throw new exception('Extract data is missing in document'); }

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.0100.01317.38
8.3.50.0130.00518.05
8.3.40.0120.00319.29
8.3.30.0060.01319.39
8.3.20.0100.00719.35
8.3.10.0060.00319.27
8.3.00.0060.00319.88
8.2.180.0090.00616.88
8.2.170.0090.00622.96
8.2.160.0000.01519.50
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.01126.16
8.2.120.0080.00021.20
8.2.110.0060.00322.63
8.2.100.0120.00018.34
8.2.90.0060.00319.54
8.2.80.0050.00318.41
8.2.70.0030.00618.25
8.2.60.0060.00318.39
8.2.50.0040.00418.28
8.2.40.0040.00420.95
8.2.30.0040.00419.61
8.2.20.0080.00318.20
8.2.10.0040.00418.26
8.2.00.0060.00318.29
8.1.280.0060.00925.92
8.1.270.0000.00823.99
8.1.260.0070.00726.35
8.1.250.0060.00328.09
8.1.240.0060.00324.34
8.1.230.0070.00422.58
8.1.220.0050.00318.15
8.1.210.0030.00618.77
8.1.200.0060.00317.75
8.1.190.0060.00317.85
8.1.180.0000.00818.10
8.1.170.0000.00819.17
8.1.160.0050.00219.45
8.1.150.0040.00419.29
8.1.140.0090.00018.08
8.1.130.0050.00318.23
8.1.120.0000.00718.05
8.1.110.0000.00817.95
8.1.100.0000.00718.02
8.1.90.0040.00418.02
8.1.80.0020.00517.88
8.1.70.0040.00417.91
8.1.60.0060.00318.09
8.1.50.0060.00317.96
8.1.40.0030.00618.04
8.1.30.0030.00618.14
8.1.20.0090.00318.02
8.1.10.0000.00818.14
8.1.00.0040.00418.04
8.0.300.0040.00418.77
8.0.290.0050.00317.38
8.0.280.0080.00018.81
8.0.270.0000.00717.61
8.0.260.0030.00317.44
8.0.250.0090.00017.58
8.0.240.0040.00417.43
8.0.230.0000.00817.48
8.0.220.0000.00717.42
8.0.210.0000.00717.38
8.0.200.0000.00717.45
8.0.190.0080.00017.50
8.0.180.0040.00417.53
8.0.170.0060.00317.39
8.0.160.0040.00417.58
8.0.150.0040.00417.54
8.0.140.0040.00417.44
8.0.130.0060.00013.86
8.0.120.0000.01017.42
8.0.110.0040.00417.44
8.0.100.0070.00017.45
8.0.90.0040.00417.50
8.0.80.0090.00617.53
8.0.70.0030.00617.26
8.0.60.0030.00617.41
8.0.50.0020.00517.55
8.0.30.0070.01317.81
8.0.20.0100.00917.85
8.0.10.0040.00417.41
8.0.00.0060.01217.30
7.4.330.0020.00213.58
7.4.320.0060.00317.23
7.4.300.0000.00717.22
7.4.290.0040.00417.02
7.4.280.0070.00017.17
7.4.270.0040.00417.14
7.4.260.0030.00313.85
7.4.250.0080.00016.97
7.4.240.0030.00317.19
7.4.230.0000.00717.24
7.4.220.0140.01016.96
7.4.210.0090.01217.16
7.4.200.0040.00317.12
7.4.190.0000.00717.37
7.4.160.0100.00617.14
7.4.150.0090.00917.02
7.4.140.0070.01317.07
7.4.130.0080.01617.20
7.4.120.0090.00917.09
7.4.110.0070.01117.09
7.4.100.0120.00917.08
7.4.90.0110.00717.18
7.4.80.0080.00819.39
7.4.70.0040.01617.36
7.4.60.0060.01017.21
7.4.50.0000.00617.15
7.4.40.0120.00317.09
7.4.30.0070.01117.08
7.4.00.0100.00715.37
7.3.330.0000.00613.48
7.3.320.0020.00413.67
7.3.310.0070.00016.70
7.3.300.0030.00316.78
7.3.290.0100.00616.80
7.3.280.0100.00916.76
7.3.270.0100.00716.87
7.3.260.0110.00617.06
7.3.250.0100.01116.81
7.3.240.0120.00617.19
7.3.230.0140.00417.14
7.3.210.0190.00016.79
7.3.200.0100.00817.09
7.3.190.0070.01016.99
7.3.180.0030.01317.05
7.3.170.0030.01317.13
7.3.160.0140.00617.14
7.3.120.0060.00915.38
7.2.330.0030.01417.18
7.2.320.0070.01717.38
7.2.310.0000.02117.05
7.2.300.0090.00917.22
7.2.290.0090.00917.19
7.2.00.0000.01119.97
7.1.100.0100.00318.30
7.1.70.0030.01417.62
7.1.60.0040.02219.30
7.1.50.0120.00917.14
7.1.00.0030.03322.60
7.0.200.0050.00817.07
7.0.140.0070.06722.20
7.0.110.0100.05020.21
7.0.100.0030.05320.16
7.0.90.0100.03720.16
7.0.80.0030.03320.26
7.0.70.0070.03020.25
7.0.60.0070.03020.12
7.0.50.0030.04020.28
7.0.40.0100.08319.97
7.0.30.0000.06719.75
7.0.20.0070.03019.93
7.0.10.0000.03719.80
7.0.00.0070.06719.78
5.6.280.0070.07021.18
5.6.260.0070.06320.72
5.6.250.0000.04320.77
5.6.240.0070.04720.76
5.6.230.0000.03720.76
5.6.220.0100.03020.88
5.6.210.0000.03720.93
5.6.200.0000.03720.83
5.6.190.0030.03320.66
5.6.180.0200.05720.98
5.6.170.0030.03320.84
5.6.160.0030.05320.75
5.6.150.0130.03020.80
5.6.140.0100.03720.68
5.6.130.0070.03720.80
5.6.120.0030.04020.83
5.6.110.0030.04320.78
5.6.100.0030.03720.77
5.6.90.0030.03320.73
5.6.80.0130.03020.13
5.6.70.0030.03720.03
5.6.60.0030.03320.05
5.6.50.0000.04020.13
5.6.40.0100.03720.18
5.6.30.0030.04720.16
5.6.20.0000.04720.17
5.6.10.0030.03020.02
5.6.00.0100.03720.16
5.5.380.0030.04017.72
5.5.370.0000.04317.66
5.5.360.0100.03017.71
5.5.350.0070.03017.84
5.5.340.0030.04018.28
5.5.330.0100.06718.16
5.5.320.0030.08318.32
5.5.310.0030.03718.14
5.5.300.0030.04718.02
5.5.290.0000.04318.07
5.5.280.0070.04018.28
5.5.270.0000.04717.91
5.5.260.0030.04018.30
5.5.250.0030.03317.88
5.5.240.0000.03317.44
5.5.230.0070.03317.56
5.5.220.0070.04017.41
5.5.210.0000.04017.70
5.5.200.0030.03317.54
5.5.190.0070.04017.42
5.5.180.0000.03317.66
5.5.160.0100.03317.68
5.5.150.0000.04017.63
5.5.140.0100.03317.42
5.5.130.0030.08017.64
5.5.120.0000.07317.41
5.5.110.0030.04317.64
5.5.100.0070.07717.58
5.5.90.0130.07017.32
5.5.80.0100.08017.18
5.5.70.0100.07017.53
5.5.60.0070.07717.52
5.5.50.0070.07317.52
5.5.40.0070.07317.26
5.5.30.0130.03717.56
5.5.20.0070.07717.33
5.5.10.0070.06317.52
5.5.00.0130.07717.56
5.4.450.0030.05019.43
5.4.440.0100.02719.66
5.4.430.0030.03019.46
5.4.420.0000.03319.55
5.4.410.0100.02719.37
5.4.400.0070.03019.11
5.4.390.0030.03719.23
5.4.380.0030.03019.26
5.4.370.0030.03319.17
5.4.360.0070.04019.28
5.4.350.0000.04019.14
5.4.340.0070.03719.14
5.4.320.0100.03719.34
5.4.310.0000.04019.47
5.4.300.0030.04019.16
5.4.290.0100.07319.18
5.4.280.0070.08019.28
5.4.270.0030.08019.28
5.4.260.0070.07319.18
5.4.250.0100.08019.16
5.4.240.0000.05019.33
5.4.230.0100.06319.33
5.4.220.0030.04719.46
5.4.210.0070.08019.33
5.4.200.0030.07019.20
5.4.190.0100.07019.42
5.4.180.0100.05319.41
5.4.170.0100.04319.42
5.4.160.0030.04719.21
5.4.150.0100.07719.11
5.4.140.0070.08016.71
5.4.130.0130.07016.43
5.4.120.0100.07016.76
5.4.110.0070.07316.74
5.4.100.0030.06016.64
5.4.90.0030.07316.66
5.4.80.0130.06316.34
5.4.70.0100.05316.57
5.4.60.0030.07016.47
5.4.50.0100.06316.69
5.4.40.0070.04716.68
5.4.30.0030.06016.43
5.4.20.0030.07316.55
5.4.10.0000.08316.46
5.4.00.0070.06716.18
5.3.290.0070.06014.93
5.3.280.0000.07714.82
5.3.270.0070.07314.70
5.3.260.0100.07314.71
5.3.250.0100.07314.86
5.3.240.0130.06314.85
5.3.230.0100.06314.65
5.3.220.0000.06314.61
5.3.210.0100.07314.79
5.3.200.0070.04314.64
5.3.190.0100.07014.58
5.3.180.0130.06314.80
5.3.170.0100.04014.65
5.3.160.0030.05314.61
5.3.150.0130.04714.80
5.3.140.0130.06314.62
5.3.130.0030.07714.64
5.3.120.0030.04014.63
5.3.110.0000.07014.59
5.3.100.0000.07314.10
5.3.90.0130.06714.08
5.3.80.0000.05714.26
5.3.70.0030.03714.18
5.3.60.0000.04714.08
5.3.50.0100.07014.11
5.3.40.0000.04714.20
5.3.30.0000.07013.89
5.3.20.0100.06313.73
5.3.10.0070.06013.89
5.3.00.0100.06013.79
5.2.170.0070.05311.89
5.2.160.0200.03011.89
5.2.150.0170.05011.89
5.2.140.0100.06711.89
5.2.130.0070.06011.89
5.2.120.0030.06311.89
5.2.110.0070.05311.89
5.2.100.0070.06011.89
5.2.90.0000.06711.89
5.2.80.0100.06011.89
5.2.70.0070.04711.89
5.2.60.0070.04011.89
5.2.50.0070.05311.89
5.2.40.0030.05311.89
5.2.30.0070.05711.89
5.2.20.0100.05011.89
5.2.10.0070.03011.89
5.2.00.0130.05311.89
5.1.60.0070.04311.89
5.1.50.0100.05011.89
5.1.40.0030.05311.89
5.1.30.0070.05011.89
5.1.20.0070.05011.89
5.1.10.0030.05311.89
5.1.00.0070.05011.89
5.0.50.0070.01711.89
5.0.40.0030.04311.89
5.0.30.0000.06711.89
5.0.20.0100.03711.89
5.0.10.0030.04311.89
5.0.00.0000.05011.89
4.4.90.0000.02011.89
4.4.80.0000.03311.89
4.4.70.0100.02311.89
4.4.60.0000.02711.89
4.4.50.0030.02011.89
4.4.40.0000.05011.89
4.4.30.0070.01311.89
4.4.20.0030.03711.89
4.4.10.0030.02011.89
4.4.00.0030.04711.89
4.3.110.0030.03311.89
4.3.100.0000.03711.89
4.3.90.0000.03711.89
4.3.80.0030.05011.89
4.3.70.0030.02311.89
4.3.60.0000.03011.89
4.3.50.0000.02011.89
4.3.40.0000.05311.89
4.3.30.0070.03011.89
4.3.20.0030.01711.89
4.3.10.0070.03311.89
4.3.00.0000.01711.89

preferences:
48.92 ms | 401 KiB | 5 Q