3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 32
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 38, Position 2 = 32
Branch analysis from position: 38
Branch analysis from position: 32
filename:       /in/NH6Gk
function name:  (null)
number of ops:  56
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_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $8      
          2        ASSIGN                                                   !0, $8
    3     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~10     'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~10
          7        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
          8        DO_FCALL                                      0          
    4     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~12     'CURLOPT_HEADER'
         12        SEND_VAL_EX                                              ~12
         13        SEND_VAL_EX                                              0
         14        DO_FCALL                                      0          
    5    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
    6    18        INIT_FCALL_BY_NAME                                       'curl_close'
         19        SEND_VAR_EX                                              !0
         20        DO_FCALL                                      0          
    7    21        ASSIGN                                                   !1, 'testing+module'
    8    22        ASSIGN                                                   !2, 'This+is+a+%24var'
    9    23        ECHO                                                     !2
   11    24        ASSIGN                                                   !1, 'testing+module'
   12    25        NOP                                                      
         26        FAST_CONCAT                                      ~19     'This+is+a+', !1
         27        ASSIGN                                                   !2, ~19
   13    28        ECHO                                                     !2
   14    29        ASSIGN                                                   !3, <array>
   15    30        ASSIGN                                                   !4, 0
         31      > JMP                                                      ->35
   16    32    >   FETCH_DIM_R                                      ~23     !3, !4
         33        ASSIGN                                                   !5, ~23
   15    34        PRE_INC                                                  !4
         35    >   COUNT                                            ~26     !3
         36        IS_SMALLER                                               !4, ~26
         37      > JMPNZ                                                    ~27, ->32
   18    38    >   ECHO                                                     '%3Cpre%3E'
   19    39        INIT_FCALL                                               'print_r'
         40        SEND_VAR                                                 !5
         41        DO_ICALL                                                 
   20    42        ECHO                                                     '%3C%2Fpre%3E'
   22    43        ASSIGN                                                   !6, 3
   23    44        ECHO                                                     '%24a'
   24    45        ECHO                                                     '%24a'
   25    46        CAST                                          6  ~30     !6
         47        ECHO                                                     ~30
   26    48        CAST                                          6  ~31     !6
         49        ECHO                                                     ~31
   27    50        ASSIGN                                                   !7, <array>
   38    51        INIT_FCALL                                               'displayarray'
         52        SEND_VAR                                                 !7
         53        DO_FCALL                                      0          
   39    54        ECHO                                                     16
   40    55      > 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/NH6Gk
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:
162.51 ms | 1403 KiB | 16 Q