3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello($arr){ if (is_Arry($name)){ foreach($arr as $name){ echo "Hello, $name how its going "; } } else { echo "Hello My Friends"; } } $names = array('Nina','Tal','Alexandra','Sofia'); hello('$names'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RcKAM
function name:  (null)
number of ops:  5
compiled vars:  !0 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'hello'
          2        SEND_VAL                                                 '%24names'
          3        DO_FCALL                                      0          
   12     4      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RcKAM
function name:  hello
number of ops:  16
compiled vars:  !0 = $arr, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL_BY_NAME                                       'is_Arry'
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0  $2      
          4      > JMPZ                                                     $2, ->14
    4     5    > > FE_RESET_R                                       $3      !0, ->12
          6    > > FE_FETCH_R                                               $3, !1, ->12
    5     7    >   ROPE_INIT                                     3  ~5      'Hello%2C+'
          8        ROPE_ADD                                      1  ~5      ~5, !1
          9        ROPE_END                                      2  ~4      ~5, '+how+its+going+'
         10        ECHO                                                     ~4
    4    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $3
         13      > JMP                                                      ->15
    7    14    >   ECHO                                                     'Hello+My+Friends'
    9    15    > > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1399 KiB | 14 Q