3v4l.org

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

End of function displayarray

Class Insurance:
Function clsname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Hf3Oo
function name:  clsNAme
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       ~0      
          1        GET_CLASS                                        ~1      ~0
          2        ECHO                                                     ~1
    6     3      > RETURN                                                   null

End of function clsname

End of class Insurance.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.27 ms | 1411 KiB | 18 Q