3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = null; 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 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
Branch analysis from position: 30
filename:       /in/aHiSH
function name:  (null)
number of ops:  54
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 >   ASSIGN                                                   !0, null
    3     1        INIT_FCALL_BY_NAME                                       'curl_setopt'
          2        SEND_VAR_EX                                              !0
          3        FETCH_CONSTANT                                   ~9      'CURLOPT_URL'
          4        SEND_VAL_EX                                              ~9
          5        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
          6        DO_FCALL                                      0          
    4     7        INIT_FCALL_BY_NAME                                       'curl_setopt'
          8        SEND_VAR_EX                                              !0
          9        FETCH_CONSTANT                                   ~11     'CURLOPT_HEADER'
         10        SEND_VAL_EX                                              ~11
         11        SEND_VAL_EX                                              0
         12        DO_FCALL                                      0          
    5    13        INIT_FCALL_BY_NAME                                       'curl_exec'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL_BY_NAME                                       'curl_close'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0          
    7    19        ASSIGN                                                   !1, 'testing+module'
    8    20        ASSIGN                                                   !2, 'This+is+a+%24var'
    9    21        ECHO                                                     !2
   11    22        ASSIGN                                                   !1, 'testing+module'
   12    23        NOP                                                      
         24        FAST_CONCAT                                      ~18     'This+is+a+', !1
         25        ASSIGN                                                   !2, ~18
   13    26        ECHO                                                     !2
   14    27        ASSIGN                                                   !3, <array>
   15    28        ASSIGN                                                   !4, 0
         29      > JMP                                                      ->33
   16    30    >   FETCH_DIM_R                                      ~22     !3, !4
         31        ASSIGN                                                   !5, ~22
   15    32        PRE_INC                                                  !4
         33    >   COUNT                                            ~25     !3
         34        IS_SMALLER                                               !4, ~25
         35      > JMPNZ                                                    ~26, ->30
   18    36    >   ECHO                                                     '%3Cpre%3E'
   19    37        INIT_FCALL                                               'print_r'
         38        SEND_VAR                                                 !5
         39        DO_ICALL                                                 
   20    40        ECHO                                                     '%3C%2Fpre%3E'
   22    41        ASSIGN                                                   !6, 3
   23    42        ECHO                                                     '%24a'
   24    43        ECHO                                                     '%24a'
   25    44        CAST                                          6  ~29     !6
         45        ECHO                                                     ~29
   26    46        CAST                                          6  ~30     !6
         47        ECHO                                                     ~30
   27    48        ASSIGN                                                   !7, <array>
   38    49        INIT_FCALL                                               'displayarray'
         50        SEND_VAR                                                 !7
         51        DO_FCALL                                      0          
   39    52        ECHO                                                     16
   40    53      > 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/aHiSH
function name:  DisplayArray
number of ops:  14
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
   29     1      > FE_RESET_R                                       $2      !0, ->12
          2    > > FE_FETCH_R                                               $2, !1, ->12
   30     3    >   TYPE_CHECK                                  128          !1
          4      > JMPZ                                                     ~3, ->9
   31     5    >   INIT_FCALL_BY_NAME                                       'DisplayArray'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8      > JMP                                                      ->11
   33     9    >   CONCAT                                           ~5      !1, '%0A'
         10        ECHO                                                     ~5
   29    11    > > JMP                                                      ->2
         12    >   FE_FREE                                                  $2
   37    13      > RETURN                                                   null

End of function displayarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.46 ms | 1403 KiB | 16 Q