3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello($arr){ if (is_array($arr)){ foreach ($arr as $name){ echo "Hello, $name how its going <br></br>"; } } else { echo "Hello Friends"; }} $names = array ('Nina','Tal','Alexandra'); hello($names); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFHPl
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_VAR                                                 !0
          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 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFHPl
function name:  hello
number of ops:  14
compiled vars:  !0 = $arr, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~2, ->12
    4     3    > > FE_RESET_R                                       $3      !0, ->10
          4    > > FE_FETCH_R                                               $3, !1, ->10
    5     5    >   ROPE_INIT                                     3  ~5      'Hello%2C+'
          6        ROPE_ADD                                      1  ~5      ~5, !1
          7        ROPE_END                                      2  ~4      ~5, '+how+its+going+%3Cbr%3E%3C%2Fbr%3E'
          8        ECHO                                                     ~4
    4     9      > JMP                                                      ->4
         10    >   FE_FREE                                                  $3
         11      > JMP                                                      ->13
    8    12    >   ECHO                                                     'Hello+Friends'
    9    13    > > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.51 ms | 1389 KiB | 14 Q