3v4l.org

run code in 300+ PHP versions simultaneously
<?php function execu($urll){ $prxy = file_get_contents('http://www.jazhd.tk/host.txt', true); $port= file_get_contents('http://www.jazhd.tk/port.txt', true); $proxy = $prxy.':'.$port; //<-optional proxy IP //$proxy=""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $urll); curl_setopt($ch, CURLOPT_HEADER, 0); if($proxy){ curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8'); } $data = curl_exec($ch); curl_close($ch); return $data; } $sFile = execu("http://ip.jsontest.com/"); echo $sFile;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sb2Mv
function name:  (null)
number of ops:  6
compiled vars:  !0 = $sFile
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_FCALL                                               'execu'
          1        SEND_VAL                                                 'http%3A%2F%2Fip.jsontest.com%2F'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   32     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function execu:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 73
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
filename:       /in/Sb2Mv
function name:  execu
number of ops:  82
compiled vars:  !0 = $urll, !1 = $prxy, !2 = $port, !3 = $proxy, !4 = $ch, !5 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.jazhd.tk%2Fhost.txt'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_FCALL                                               'file_get_contents'
          7        SEND_VAL                                                 'http%3A%2F%2Fwww.jazhd.tk%2Fport.txt'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    7    11        CONCAT                                           ~10     !1, '%3A'
         12        CONCAT                                           ~11     ~10, !2
         13        ASSIGN                                                   !3, ~11
    9    14        INIT_FCALL_BY_NAME                                       'curl_init'
         15        DO_FCALL                                      0  $13     
         16        ASSIGN                                                   !4, $13
   10    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !4
         19        FETCH_CONSTANT                                   ~15     'CURLOPT_URL'
         20        SEND_VAL_EX                                              ~15
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0          
   11    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !4
         25        FETCH_CONSTANT                                   ~17     'CURLOPT_HEADER'
         26        SEND_VAL_EX                                              ~17
         27        SEND_VAL_EX                                              0
         28        DO_FCALL                                      0          
   13    29      > JMPZ                                                     !3, ->73
   14    30    >   INIT_FCALL_BY_NAME                                       'curl_setopt'
         31        SEND_VAR_EX                                              !4
         32        FETCH_CONSTANT                                   ~19     'CURLOPT_HEADER'
         33        SEND_VAL_EX                                              ~19
         34        SEND_VAL_EX                                              <false>
         35        DO_FCALL                                      0          
   15    36        INIT_FCALL_BY_NAME                                       'curl_setopt'
         37        SEND_VAR_EX                                              !4
         38        FETCH_CONSTANT                                   ~21     'CURLOPT_RETURNTRANSFER'
         39        SEND_VAL_EX                                              ~21
         40        SEND_VAL_EX                                              <true>
         41        DO_FCALL                                      0          
   16    42        INIT_FCALL_BY_NAME                                       'curl_setopt'
         43        SEND_VAR_EX                                              !4
         44        FETCH_CONSTANT                                   ~23     'CURLOPT_HTTP_VERSION'
         45        SEND_VAL_EX                                              ~23
         46        FETCH_CONSTANT                                   ~24     'CURL_HTTP_VERSION_1_1'
         47        SEND_VAL_EX                                              ~24
         48        DO_FCALL                                      0          
   17    49        INIT_FCALL_BY_NAME                                       'curl_setopt'
         50        SEND_VAR_EX                                              !4
         51        FETCH_CONSTANT                                   ~26     'CURLOPT_PROXY'
         52        SEND_VAL_EX                                              ~26
         53        SEND_VAR_EX                                              !3
         54        DO_FCALL                                      0          
   18    55        INIT_FCALL_BY_NAME                                       'curl_setopt'
         56        SEND_VAR_EX                                              !4
         57        FETCH_CONSTANT                                   ~28     'CURLOPT_HTTPPROXYTUNNEL'
         58        SEND_VAL_EX                                              ~28
         59        SEND_VAL_EX                                              <true>
         60        DO_FCALL                                      0          
   19    61        INIT_FCALL_BY_NAME                                       'curl_setopt'
         62        SEND_VAR_EX                                              !4
         63        FETCH_CONSTANT                                   ~30     'CURLOPT_CONNECTTIMEOUT'
         64        SEND_VAL_EX                                              ~30
         65        SEND_VAL_EX                                              5
         66        DO_FCALL                                      0          
   20    67        INIT_FCALL_BY_NAME                                       'curl_setopt'
         68        SEND_VAR_EX                                              !4
         69        FETCH_CONSTANT                                   ~32     'CURLOPT_USERAGENT'
         70        SEND_VAL_EX                                              ~32
         71        SEND_VAL_EX                                              'Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+5.1%3B+en-US%3B+rv%3A1.9.0.8%29+Gecko%2F2009032609+Firefox%2F3.0.8'
         72        DO_FCALL                                      0          
   23    73    >   INIT_FCALL_BY_NAME                                       'curl_exec'
         74        SEND_VAR_EX                                              !4
         75        DO_FCALL                                      0  $34     
         76        ASSIGN                                                   !5, $34
   25    77        INIT_FCALL_BY_NAME                                       'curl_close'
         78        SEND_VAR_EX                                              !4
         79        DO_FCALL                                      0          
   26    80      > RETURN                                                   !5
   27    81*     > RETURN                                                   null

End of function execu

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.35 ms | 1398 KiB | 16 Q