3v4l.org

run code in 300+ PHP versions simultaneously
<?php $score_url = 'http://vowgag.com/to/23335/'; $headers = get_headers($score_url); $response = substr($headers[0], 9, 3); $html = file_get_contents($score_url); $html2 = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); $classname = 'entry-content'; $ogtitle = 'og:title'; $dom = new DOMDocument; $dom->loadHTML($html2); $xpath = new DOMXPath($dom); //$results = $xpath->query("(//div[@class='" . $classname . "'])[1]/p/a[1]"); $results2 = $xpath->query("(//div[@class='" . $classname . "'])[1]/p/a[1]/img[1]/@src"); $results3 = $xpath->query("//meta[@property='" . $ogtitle . "']/@content"); foreach ($results2 as $parseimg){ $parseimgurl = parse_url($parseimg->nodue.""); } echo $parseimgurl;

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.4.20.0100.01018.10
8.4.10.0030.00618.32
8.3.150.0070.00316.93
8.3.140.0040.01116.82
8.3.130.0030.00718.73
8.3.120.0090.00020.88
8.3.110.0080.00017.28
8.3.100.0110.00024.06
8.3.90.0030.00526.77
8.3.80.0060.00618.80
8.3.70.0090.01316.62
8.3.60.0040.01917.13
8.3.50.0110.00922.17
8.3.40.0060.00919.22
8.3.30.0100.00319.29
8.3.20.0080.00020.71
8.3.10.0080.00023.86
8.3.00.0040.00422.88
8.2.270.0070.00717.23
8.2.260.0170.00021.27
8.2.250.0060.00319.17
8.2.240.0120.00319.01
8.2.230.0080.00020.94
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0060.00318.66
8.2.190.0040.01117.38
8.2.180.0120.00918.63
8.2.170.0070.00722.96
8.2.160.0030.01020.77
8.2.150.0060.01024.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0020.00521.36
8.2.110.0090.00020.77
8.2.100.0070.00418.03
8.2.90.0040.00418.34
8.2.80.0000.00818.29
8.2.70.0050.00318.29
8.2.60.0000.00818.28
8.2.50.0080.00018.10
8.2.40.0040.00420.81
8.2.30.0000.00818.18
8.2.20.0040.00418.07
8.2.10.0030.00518.31
8.2.00.0100.00018.27
8.1.310.0110.00718.82
8.1.300.0030.01316.32
8.1.290.0090.00030.84
8.1.280.0150.00625.92
8.1.270.0080.00020.68
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01022.30
8.1.230.0000.01124.23
8.1.220.0050.00318.01
8.1.210.0080.00019.15
8.1.200.0000.00917.47
8.1.190.0090.00019.39
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0040.00422.37
8.1.150.0000.00719.14
8.1.140.0000.00717.60
8.1.130.0110.00018.08
8.1.120.0050.00217.69
8.1.110.0040.00417.64
8.1.100.0040.00417.69
8.1.90.0000.00717.69
8.1.80.0000.00817.60
8.1.70.0060.00317.59
8.1.60.0030.00617.62
8.1.50.0080.00317.76
8.1.40.0060.00317.65
8.1.30.0030.00617.83
8.1.20.0000.00817.79
8.1.10.0040.00417.77
8.1.00.0080.00017.76
8.0.300.0060.00620.11
8.0.290.0000.00817.00
8.0.280.0070.00018.61
8.0.270.0050.00317.59
8.0.260.0070.00017.39
8.0.250.0030.00317.23
8.0.240.0000.00717.21
8.0.230.0000.00817.23
8.0.220.0000.00717.13
8.0.210.0070.00017.18
8.0.200.0040.00417.23
8.0.190.0040.00417.26
8.0.180.0000.00817.16
8.0.170.0040.00417.19
8.0.160.0040.00417.16
8.0.150.0040.00417.20
8.0.140.0000.00817.00
8.0.130.0030.00313.73
8.0.120.0050.00317.23
8.0.110.0060.00317.34
8.0.100.0000.00817.21
8.0.90.0060.00317.19
8.0.80.0030.01317.37
8.0.70.0040.00417.28
8.0.60.0000.00717.25
8.0.50.0000.00817.15
8.0.30.0110.00917.40
8.0.20.0110.00817.53
8.0.10.0030.00717.25
8.0.00.0120.00917.07
7.4.330.0020.00215.70
7.4.320.0000.00816.93
7.4.300.0070.00016.92
7.4.290.0030.00416.98
7.4.280.0000.00817.00
7.4.270.0040.00416.93
7.4.260.0070.00016.99
7.4.250.0040.00417.00
7.4.240.0070.00117.19
7.4.230.0040.00417.16
7.4.220.0150.01217.16
7.4.210.0070.01017.09
7.4.200.0000.00717.18
7.4.160.0080.00817.02
7.4.150.0040.01417.40
7.4.140.0150.01117.86
7.4.130.0110.01016.97
7.4.120.0110.00916.97
7.4.110.0070.01416.91
7.4.100.0110.01117.10
7.4.90.0090.00917.07
7.4.80.0160.01019.39
7.4.70.0080.01117.17
7.4.60.0130.00417.18
7.4.50.0060.00316.84
7.4.40.0080.01117.02
7.4.30.0090.01517.17
7.4.00.0100.00815.45
7.3.330.0050.00013.67
7.3.320.0030.00313.84
7.3.310.0000.00716.89
7.3.300.0040.00417.00
7.3.290.0120.00616.89
7.3.280.0130.00816.96
7.3.270.0040.01417.40
7.3.260.0100.01316.84
7.3.250.0150.00616.95
7.3.240.0100.01016.85
7.3.230.0060.01217.02
7.3.210.0120.00617.06
7.3.200.0090.00917.02
7.3.190.0170.00017.14
7.3.180.0160.00316.86
7.3.170.0040.01717.21
7.3.160.0140.00616.99
7.3.120.0140.00515.15
7.3.110.0050.01215.38
7.3.100.0050.01015.26
7.3.90.0050.01015.28
7.3.80.0090.00515.52
7.3.70.0070.00415.25
7.3.60.0060.00815.32
7.3.50.0070.00714.98
7.3.40.0070.00715.21
7.3.30.0080.00515.23
7.3.20.0060.00717.20
7.3.10.0090.00717.06
7.3.00.0050.01017.11
7.2.330.0060.01517.19
7.2.320.0070.01117.18
7.2.310.0060.01617.44
7.2.300.0170.00716.98
7.2.290.0060.01517.14
7.2.250.0070.01715.34
7.2.240.0070.01215.62
7.2.230.0070.01015.32
7.2.220.0080.00615.24
7.2.210.0060.01315.58
7.2.200.0060.01115.22
7.2.190.0080.00615.22
7.2.180.0110.00515.38
7.2.170.0050.01215.36
7.2.160.0060.01015.39
7.2.150.0100.00317.29
7.2.140.0080.00617.30
7.2.130.0060.01017.29
7.2.120.0000.01717.36
7.2.110.0040.01217.40
7.2.100.0070.01117.28
7.2.90.0140.00317.32
7.2.80.0110.00517.08
7.2.70.0100.01017.05
7.2.60.0050.01017.36
7.2.50.0090.00917.46
7.2.40.0060.00917.14
7.2.30.0140.00317.21
7.2.20.0150.00617.32
7.2.10.0070.01116.98
7.2.00.0030.01018.40
7.1.330.0100.00516.22
7.1.320.0060.00616.09
7.1.310.0060.00315.96
7.1.300.0090.00616.21
7.1.290.0060.00816.16
7.1.280.0010.01116.13
7.1.270.0050.01116.27
7.1.260.0070.00616.26
7.1.250.0090.00616.09
7.1.200.0040.01016.01
7.1.100.0080.00318.29
7.1.70.0060.00917.54
7.1.60.0030.02019.23
7.1.50.0070.01417.45
7.1.00.0070.07323.00
7.0.200.0230.00317.05
7.0.60.0070.04020.38
7.0.50.0030.06018.27
7.0.40.0100.04020.62
7.0.30.0630.07020.72
7.0.20.0100.05020.74
7.0.10.0100.06720.63
7.0.00.0000.04720.71
5.6.280.0030.05021.41
5.6.210.0170.06721.03
5.6.200.0030.04718.65
5.6.190.0100.06721.09
5.6.180.0370.07721.02
5.6.170.0200.08020.92
5.6.160.0000.04321.02
5.6.150.0030.05318.65
5.6.140.0070.06018.74
5.6.130.0000.05718.79
5.6.120.0030.04021.59
5.6.110.0200.07321.40
5.6.100.0070.08321.40
5.6.90.0070.09021.42
5.6.80.0130.05020.90
5.6.70.3030.03720.89
5.5.350.0100.04720.82
5.5.340.0000.08718.54
5.5.330.0070.06020.87
5.5.320.0200.04320.83
5.5.310.0300.07020.71
5.5.300.0030.08318.50
5.5.290.0170.07318.36
5.5.280.0130.07321.33
5.5.270.0100.08321.29
5.5.260.0000.07721.29
5.5.250.0070.07721.10
5.5.240.0070.07720.63
5.4.450.0800.05319.97
5.4.440.1000.06719.82
5.4.430.0700.06319.82
5.4.420.0800.08019.80
5.4.410.0530.06019.83
5.4.400.0700.05019.52
5.4.390.0670.05719.46
5.4.380.0930.07319.63
5.4.370.0830.04719.52
5.4.360.0770.06319.52
5.4.350.0830.05319.50
5.4.340.0800.06719.61
5.4.320.1200.07319.38
5.4.310.1130.08019.48
5.4.300.0930.07719.52
5.4.290.1200.05319.36
5.4.280.1070.04719.61
5.4.270.0870.05719.46
5.4.260.1030.05019.57
5.4.250.1030.06719.60
5.4.240.0800.05319.46
5.4.230.1000.05019.65
5.4.220.0970.07319.55
5.4.210.0770.06319.50
5.4.200.0800.04717.09
5.4.190.0970.05319.38
5.4.180.0970.05019.59
5.4.170.0870.05019.55
5.4.160.0800.05719.50
5.4.150.0700.05719.52
5.4.140.0970.05716.98
5.4.130.0900.05716.93
5.4.120.0900.06016.88
5.4.110.0900.05016.83
5.4.100.1070.08016.95
5.4.90.0970.04316.91
5.4.80.0570.05316.92
5.4.70.0670.06716.91
5.4.60.1130.06716.92
5.4.50.0830.05316.86
5.4.40.1000.04316.89
5.4.30.0770.04716.90
5.4.20.0930.04316.91
5.4.10.0830.05716.87
5.4.00.0970.05016.32
5.3.290.0900.04714.76
5.3.280.0800.05014.71
5.3.270.0930.06314.94
5.3.260.0970.05314.94
5.3.250.0870.05314.69
5.3.240.0900.06014.79
5.3.230.0770.06015.00
5.3.220.0800.05714.71
5.3.210.0900.06314.96
5.3.200.0770.06314.73
5.3.190.1000.05314.87
5.3.180.0900.05714.73
5.3.170.1030.05714.96
5.3.160.1130.05014.96
5.3.150.1000.05314.85
5.3.140.1070.06014.96
5.3.130.0930.05714.70
5.3.120.0830.05014.89
5.3.110.0730.06314.71
5.3.100.0900.07714.18
5.3.90.0900.04314.41
5.3.80.0870.06014.41
5.3.70.0930.05314.18
5.3.60.0770.05714.16
5.3.50.0770.05014.34
5.3.40.0730.06014.04
5.3.30.0770.06013.99
5.3.20.1000.04014.04
5.3.10.0900.05313.84
5.3.00.0770.05313.94
5.2.170.0700.05011.23
5.2.160.0730.03711.42
5.2.150.0730.04311.29
5.2.140.0700.04711.54
5.2.130.0570.04011.36
5.2.120.0670.04711.41
5.2.110.0800.04011.29
5.2.100.0700.04011.25
5.2.90.0500.03711.24
5.2.80.0770.05011.39
5.2.70.0600.04711.19
5.2.60.0830.04711.38
5.2.50.0830.04011.12
5.2.40.0430.04711.09
5.2.30.0600.06311.16
5.2.20.0900.04311.27
5.2.10.0770.05011.15
5.2.00.0500.05010.88
5.1.60.0500.03710.41
5.1.50.0530.03310.33
5.1.40.0770.02010.38
5.1.30.0500.03710.50
5.1.20.0700.03710.50
5.1.10.0700.03010.19
5.1.00.0630.03010.23
5.0.50.0430.0378.97
5.0.40.0300.0308.59
5.0.30.0230.0508.32
5.0.20.0370.0208.30
5.0.10.0330.0308.58
5.0.00.0330.0408.40
4.4.90.0270.0235.89
4.4.80.0230.0235.83
4.4.70.0300.0205.83
4.4.60.0230.0275.83
4.4.50.0300.0235.79
4.4.40.0300.0405.80
4.4.30.0170.0375.85
4.4.20.0370.0135.83
4.4.10.0230.0275.91
4.4.00.0200.0435.85
4.3.110.0330.0175.75
4.3.100.0300.0235.74
4.3.90.0370.0135.74
4.3.80.0300.0335.71
4.3.70.0330.0205.74
4.3.60.0330.0175.74
4.3.50.0230.0235.66
4.3.40.0300.0305.72
4.3.30.0130.0234.53
4.3.20.0200.0204.47
4.3.10.0070.0274.36
4.3.00.0130.0276.94

preferences:
36.47 ms | 403 KiB | 5 Q