3v4l.org

run code in 300+ PHP versions simultaneously
<?php function browser($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"); $html = curl_exec($ch); curl_close($ch); return $html; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/goShJ
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   1

Function browser:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/goShJ
function name:  browser
number of ops:  32
compiled vars:  !0 = $url, !1 = $ch, !2 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
          5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !1
          7        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          8        SEND_VAL_EX                                              ~5
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
         11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !1
         13        FETCH_CONSTANT                                   ~7      'CURLOPT_RETURNTRANSFER'
         14        SEND_VAL_EX                                              ~7
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0          
         17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !1
         19        FETCH_CONSTANT                                   ~9      'CURLOPT_USERAGENT'
         20        SEND_VAL_EX                                              ~9
         21        SEND_VAL_EX                                              'Mozilla%2F4.0+%28compatible%3B+MSIE+6.0%3B+Windows+NT+5.1%3B+SV1%3B+.NET+CLR+1.1.4322%29'
         22        DO_FCALL                                      0          
         23        INIT_FCALL_BY_NAME                                       'curl_exec'
         24        SEND_VAR_EX                                              !1
         25        DO_FCALL                                      0  $11     
         26        ASSIGN                                                   !2, $11
         27        INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAR_EX                                              !1
         29        DO_FCALL                                      0          
         30      > RETURN                                                   !2
         31*     > RETURN                                                   null

End of function browser

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.69 ms | 1395 KiB | 13 Q