3v4l.org

run code in 300+ PHP versions simultaneously
<?php function add($valor){ return ++$valor; } $array = array(1,2,3); call_user_func_array("add",$array); foreach($array as $valor){ echo $valor . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/qN618
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $valor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'add'
          2        SEND_ARRAY                                               !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_FCALL                                      0          
    8     5      > FE_RESET_R                                       $4      !0, ->10
          6    > > FE_FETCH_R                                               $4, !1, ->10
    9     7    >   CONCAT                                           ~5      !1, '%0A'
          8        ECHO                                                     ~5
    8     9      > JMP                                                      ->6
         10    >   FE_FREE                                                  $4
   10    11      > RETURN                                                   1

Function add:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qN618
function name:  add
number of ops:  4
compiled vars:  !0 = $valor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        PRE_INC                                          ~1      !0
          2      > RETURN                                                   ~1
    4     3*     > RETURN                                                   null

End of function add

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.63 ms | 1389 KiB | 14 Q