3v4l.org

run code in 300+ PHP versions simultaneously
<?php function grab($url){ $data = curl_init(); curl_setopt($data, CURLOPT_URL, $url); curl_setopt($data, CURLOPT_RETURNTRANSFER, true); curl_setopt($data, CURLOPT_SSL_VERIFYPEER, false); $hasil = curl_exec($data); curl_close($data); return $hasil; } $grab = grab('https://mobile.twitter.com/DhikiSianipar/status/651449390301773824'); $grab = preg_replace('|<div id="brand_bar">(.*?)</div>|is','',$grab); $grab = preg_replace('|<span class="w-button-common w-button-follow">(.*?)</span>|is','',$grab); $grab = preg_replace('|<table class="main-tweet-actions four">(.*?)</table>|is','',$grab); $grab = preg_replace('|<div id="footer">(.*?)<img src="https://twitter.com/robots.txt" height="0" width="0">|is','',$grab); print_r($grab); //echo $grab; //$pecah = explode('<div class="dir-ltr" dir="ltr">',$grab); //$pecah2 = explode('</div>',$pecah[19]); //echo $pecah2[0]; ?> <button id="ular"></button> <textarea id="debugConsole" rows="10" cols="60">Data</textarea> <script type="text/javascript" src="./dist/html2canvas.js"></script> <script type="text/javascript"> html2canvas(document.querySelector("#main-content")).then(function(canvas) { document.body.appendChild(canvas); }); width: 520 </script> <script> document.querySelector("button").addEventListener("click", function() { var canvas = document.querySelector("canvas"); var image = canvas.toDataURL("image/png"); //Convert image to 'octet-stream' (Just a download, really) var debugConsole= document.getElementById("debugConsole"); debugConsole.value=image; }, false); </script> <script> window.onload = function() { setTimeout("document.querySelector('button').click()", 300); } </script>

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.01318.55
8.3.50.0060.01216.54
8.3.40.0130.00318.84
8.3.30.0030.01618.68
8.3.20.0000.00820.20
8.3.10.0030.00521.93
8.3.00.0040.00417.93
8.2.180.0150.00318.50
8.2.170.0030.01022.96
8.2.160.0090.00620.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0090.00017.38
8.2.110.0060.00322.13
8.2.100.0060.00618.04
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0030.00617.47
8.2.60.0000.00817.68
8.2.50.0030.00618.07
8.2.40.0110.00019.39
8.2.30.0040.00420.62
8.2.20.0040.00417.72
8.2.10.0080.00018.04
8.2.00.0070.00018.02
8.1.280.0120.00325.92
8.1.270.0040.01322.06
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.53
8.1.230.0090.00317.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0020.00518.10
8.1.170.0000.00918.52
8.1.160.0040.00422.02
8.1.150.0000.00818.79
8.1.140.0000.00817.35
8.1.130.0030.00717.52
8.1.120.0000.00717.43
8.1.110.0040.00417.40
8.1.100.0070.00017.38
8.1.90.0000.00717.35
8.1.80.0040.00417.36
8.1.70.0070.00017.24
8.1.60.0000.00817.52
8.1.50.0080.00017.53
8.1.40.0040.00417.43
8.1.30.0030.00517.59
8.1.20.0000.00717.57
8.1.10.0000.00817.51
8.1.00.0070.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0030.00317.24
8.0.260.0000.00617.20
8.0.250.0000.00816.90
8.0.240.0040.00416.98
8.0.230.0020.00516.93
8.0.220.0030.00316.83
8.0.210.0000.00716.95
8.0.200.0000.00617.03
8.0.190.0120.00016.95
8.0.180.0050.00216.85
8.0.170.0000.00817.00
8.0.160.0000.00816.98
8.0.150.0030.00316.88
8.0.140.0000.00816.82
8.0.130.0030.00313.34
8.0.120.0070.00416.90
8.0.110.0030.00516.77
8.0.100.0080.00016.78
8.0.90.0000.00717.00
8.0.80.0070.01116.83
8.0.70.0040.00416.93
8.0.60.0070.00016.92
8.0.50.0000.00716.73
8.0.30.0130.00617.22
8.0.20.0100.00917.40
8.0.10.0000.00717.00
8.0.00.0090.01016.88
7.4.330.0000.00515.08
7.4.320.0030.00316.52
7.4.300.0000.00716.34
7.4.290.0080.00016.52
7.4.280.0080.00316.57
7.4.270.0070.00016.59
7.4.260.0030.00516.44
7.4.250.0040.00416.45
7.4.240.0040.00416.56
7.4.230.0030.00316.42
7.4.220.0120.00616.58
7.4.210.0110.00416.35
7.4.200.0050.00216.48
7.4.160.0090.00616.43
7.4.150.0100.00917.40
7.4.140.0100.01017.86
7.4.130.0080.00916.44
7.4.120.0060.01116.47
7.4.110.0090.00916.45
7.4.100.0100.00716.47
7.4.90.0070.01016.59
7.4.80.0140.00619.39
7.4.70.0130.00316.33
7.4.60.0130.00316.42
7.4.50.0040.00416.59
7.4.40.0140.00416.34
7.4.30.0150.00316.39
7.4.00.0030.01014.70
7.3.330.0020.00213.13
7.3.320.0000.00513.33
7.3.310.0000.00716.11
7.3.300.0070.00016.34
7.3.290.0100.00816.31
7.3.280.0040.01116.37
7.3.270.0050.01117.40
7.3.260.0120.01516.30
7.3.250.0060.01216.26
7.3.240.0100.00716.52
7.3.230.0110.00616.39
7.3.210.0130.00316.29
7.3.200.0170.00616.63
7.3.190.0060.00916.57
7.3.180.0140.00316.20
7.3.170.0090.01216.46
7.3.160.0090.00816.41
7.3.120.0110.00714.72
7.3.110.0100.00714.98
7.3.100.0060.01214.52
7.3.90.0080.00814.87
7.3.80.0090.00614.61
7.3.70.0090.00314.85
7.3.60.0030.01314.62
7.3.50.0110.00414.81
7.3.40.0000.01414.92
7.3.30.0090.00914.63
7.3.20.0030.00916.72
7.3.10.0080.00516.59
7.3.00.0070.00716.65
7.2.330.0140.00516.63
7.2.320.0100.01016.66
7.2.310.0060.00916.39
7.2.300.0070.01016.50
7.2.290.0050.01016.62
7.2.240.0080.00815.19
7.2.230.0060.00915.00
7.2.220.0060.01314.50
7.2.210.0060.00914.86
7.2.200.0100.00014.64
7.2.190.0030.01014.94
7.2.180.0100.00314.96
7.2.170.0100.01014.95
7.2.160.0070.00715.00
7.2.150.0000.01116.59
7.2.140.0000.01816.66
7.2.130.0050.00916.72
7.2.120.0080.00816.75
7.2.110.0020.01316.71
7.2.100.0070.00716.73
7.2.90.0060.00916.67
7.2.80.0050.00916.72
7.2.70.0080.00316.64
7.2.60.0050.00816.79
7.2.50.0080.00516.73
7.2.40.0060.00816.85
7.2.30.0100.00616.66
7.2.20.0060.00816.70
7.2.10.0080.00516.77
7.2.00.0060.00517.62
7.1.330.0090.00915.57
7.1.320.0070.01115.59
7.1.310.0030.00915.69
7.1.300.0000.01315.18
7.1.290.0090.00615.28
7.1.280.0090.00615.62
7.1.270.0070.00715.65
7.1.260.0040.00415.69
7.1.250.0050.00915.43
7.1.200.0040.00815.58
7.1.100.0000.01217.63
7.1.70.0100.00017.14
7.1.60.0160.00019.20
7.1.50.0090.01316.82
7.1.00.0030.07322.51
7.0.200.0520.00714.58
7.0.60.0070.08020.09
7.0.50.0030.08017.86
7.0.40.0200.03020.13
7.0.30.0270.08020.21
7.0.20.0370.07720.11
7.0.10.0030.06020.25
7.0.00.0030.04020.18
5.6.280.0030.06320.91
5.6.210.0000.04320.48
5.6.200.0030.08718.17
5.6.190.0130.07720.66
5.6.180.0230.06720.46
5.6.170.0330.04720.48
5.6.160.0000.04320.57
5.6.150.0070.08018.24
5.6.140.0100.03718.19
5.6.130.0030.04718.23
5.6.120.0070.08720.88
5.6.110.0100.04320.99
5.6.100.0070.08321.14
5.6.90.0170.07321.02
5.6.80.0070.07720.43
5.5.350.0070.07720.30
5.5.340.0070.05017.96
5.5.330.0170.04020.23
5.5.320.2500.04320.38
5.5.310.0130.04720.34
5.5.300.0030.04317.98
5.5.290.0070.03717.98
5.5.280.0000.04320.76
5.5.270.0100.03720.85
5.5.260.0030.06320.85
5.5.250.0070.06720.71
5.5.240.0100.07320.16
5.4.450.0300.05319.30
5.4.440.0200.06719.69
5.4.430.0170.06319.58
5.4.420.0270.05019.58
5.4.410.0270.06019.45
5.4.400.0170.07719.32
5.4.390.0170.06719.12
5.4.380.0270.05319.32
5.4.370.0270.05019.07
5.4.360.0170.06019.28
5.4.350.0270.06019.23
5.4.340.0300.05019.21
5.4.320.0230.05719.15
5.4.310.0130.05719.16
5.4.300.0200.05319.14
5.4.290.0370.04018.97
5.4.280.0200.06719.05
5.4.270.0130.06318.98
5.4.260.0170.08019.12
5.4.250.0100.07718.82
5.4.240.0200.05719.25
5.4.230.0670.06719.11
5.4.220.0270.04319.36
5.4.210.0100.05719.28
5.4.200.0100.05719.38
5.4.190.0230.06018.82
5.4.180.0200.06318.82
5.4.170.0200.05719.14
5.4.160.0100.06319.26
5.4.150.0030.07019.13
5.4.140.0100.05316.29
5.4.130.0430.05316.36
5.4.120.0100.05316.27
5.4.110.0130.05716.41
5.4.100.0030.07016.53
5.4.90.0100.04716.52
5.4.80.0000.05716.50
5.4.70.0200.03716.55
5.4.60.0230.03716.24
5.4.50.0070.05316.34
5.4.40.0300.06316.43
5.4.30.0000.07316.22
5.4.20.0330.03316.55
5.4.10.0230.07316.52

preferences:
40.99 ms | 400 KiB | 5 Q