3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump (3*4); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.example.com/"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); $var = "testing module"; $statement = 'This is a $var'; echo ($statement); $var = "testing module"; $statement = "This is a $var"; echo ($statement); $arr = array("foo","bar","baz"); for ( $i = 0; $i < count($arr); $i++){ $item = $arr[$i]; } echo "<pre>"; print_r($item); echo "</pre>"; $a = 3; print '$a'; echo '$a'; print "$a"; echo "$a"; $array = array(array(141,151,161), 2, 3, array(101, 202, 303)); function DisplayArray($array) { foreach ($array as $value) { if (is_array($value)) { DisplayArray($value); } else { echo $value . " "; } } } DisplayArray($array); echo 0x10; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 35
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 35
Branch analysis from position: 41
Branch analysis from position: 35
filename:       /in/v9bSV
function name:  (null)
number of ops:  59
compiled vars:  !0 = $ch, !1 = $var, !2 = $statement, !3 = $arr, !4 = $i, !5 = $item, !6 = $a, !7 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 12
          2        DO_ICALL                                                 
    3     3        INIT_FCALL_BY_NAME                                       'curl_init'
          4        DO_FCALL                                      0  $9      
          5        ASSIGN                                                   !0, $9
    4     6        INIT_FCALL_BY_NAME                                       'curl_setopt'
          7        SEND_VAR_EX                                              !0
          8        FETCH_CONSTANT                                   ~11     'CURLOPT_URL'
          9        SEND_VAL_EX                                              ~11
         10        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
         11        DO_FCALL                                      0          
    5    12        INIT_FCALL_BY_NAME                                       'curl_setopt'
         13        SEND_VAR_EX                                              !0
         14        FETCH_CONSTANT                                   ~13     'CURLOPT_HEADER'
         15        SEND_VAL_EX                                              ~13
         16        SEND_VAL_EX                                              0
         17        DO_FCALL                                      0          
    6    18        INIT_FCALL_BY_NAME                                       'curl_exec'
         19        SEND_VAR_EX                                              !0
         20        DO_FCALL                                      0          
    7    21        INIT_FCALL_BY_NAME                                       'curl_close'
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0          
    8    24        ASSIGN                                                   !1, 'testing+module'
    9    25        ASSIGN                                                   !2, 'This+is+a+%24var'
   10    26        ECHO                                                     !2
   12    27        ASSIGN                                                   !1, 'testing+module'
   13    28        NOP                                                      
         29        FAST_CONCAT                                      ~20     'This+is+a+', !1
         30        ASSIGN                                                   !2, ~20
   14    31        ECHO                                                     !2
   15    32        ASSIGN                                                   !3, <array>
   16    33        ASSIGN                                                   !4, 0
         34      > JMP                                                      ->38
   17    35    >   FETCH_DIM_R                                      ~24     !3, !4
         36        ASSIGN                                                   !5, ~24
   16    37        PRE_INC                                                  !4
         38    >   COUNT                                            ~27     !3
         39        IS_SMALLER                                               !4, ~27
         40      > JMPNZ                                                    ~28, ->35
   19    41    >   ECHO                                                     '%3Cpre%3E'
   20    42        INIT_FCALL                                               'print_r'
         43        SEND_VAR                                                 !5
         44        DO_ICALL                                                 
   21    45        ECHO                                                     '%3C%2Fpre%3E'
   23    46        ASSIGN                                                   !6, 3
   24    47        ECHO                                                     '%24a'
   25    48        ECHO                                                     '%24a'
   26    49        CAST                                          6  ~31     !6
         50        ECHO                                                     ~31
   27    51        CAST                                          6  ~32     !6
         52        ECHO                                                     ~32
   28    53        ASSIGN                                                   !7, <array>
   39    54        INIT_FCALL                                               'displayarray'
         55        SEND_VAR                                                 !7
         56        DO_FCALL                                      0          
   40    57        ECHO                                                     16
   41    58      > RETURN                                                   1

Function displayarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/v9bSV
function name:  DisplayArray
number of ops:  14
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
   30     1      > FE_RESET_R                                       $2      !0, ->12
          2    > > FE_FETCH_R                                               $2, !1, ->12
   31     3    >   TYPE_CHECK                                  128          !1
          4      > JMPZ                                                     ~3, ->9
   32     5    >   INIT_FCALL_BY_NAME                                       'DisplayArray'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8      > JMP                                                      ->11
   34     9    >   CONCAT                                           ~5      !1, '%0A'
         10        ECHO                                                     ~5
   30    11    > > JMP                                                      ->2
         12    >   FE_FREE                                                  $2
   38    13      > RETURN                                                   null

End of function displayarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
217.93 ms | 1403 KiB | 18 Q