3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hoge(array $foo){ if($foo['foo']){ return 'true'; }else{ return 'false'; } } $foo = 'bar'; echo hoge($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fClmT
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'bar'
   11     1        INIT_FCALL                                               'hoge'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function hoge:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fClmT
function name:  hoge
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_DIM_R                                      ~1      !0, 'foo'
          2      > JMPZ                                                     ~1, ->5
    5     3    > > RETURN                                                   'true'
          4*       JMP                                                      ->6
    7     5    > > RETURN                                                   'false'
    9     6*     > RETURN                                                   null

End of function hoge

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.14 ms | 1397 KiB | 14 Q