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