3v4l.org

run code in 300+ PHP versions simultaneously
<?php function itemsasd(){ $args = array(); for($i = 0 ; $i < func_num_args(); $i++) { $args[$i] = func_get_arg($i); } foreach($args as $arg){ echo $arg; } } function showmessage($message = "msg"){ echo $message; } showmessage(); showmessage("blah"); itemsasd(1,2,3); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lieo
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'showmessage'
          1        DO_FCALL                                      0          
   21     2        INIT_FCALL                                               'showmessage'
          3        SEND_VAL                                                 'blah'
          4        DO_FCALL                                      0          
   23     5        INIT_FCALL                                               'itemsasd'
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 2
          8        SEND_VAL                                                 3
          9        DO_FCALL                                      0          
   25    10      > RETURN                                                   1

Function itemsasd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
filename:       /in/1lieo
function name:  itemsasd
number of ops:  18
compiled vars:  !0 = $args, !1 = $i, !2 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->9
    7     3    >   INIT_FCALL                                               'func_get_arg'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN_DIM                                               !0, !1
          7        OP_DATA                                                  $6
    6     8        PRE_INC                                                  !1
          9    >   FUNC_NUM_ARGS                                    ~8      
         10        IS_SMALLER                                               !1, ~8
         11      > JMPNZ                                                    ~9, ->3
   10    12    > > FE_RESET_R                                       $10     !0, ->16
         13    > > FE_FETCH_R                                               $10, !2, ->16
   11    14    >   ECHO                                                     !2
   10    15      > JMP                                                      ->13
         16    >   FE_FREE                                                  $10
   13    17      > RETURN                                                   null

End of function itemsasd

Function showmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1lieo
function name:  showmessage
number of ops:  3
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV_INIT                                        !0      'msg'
   16     1        ECHO                                                     !0
   17     2      > RETURN                                                   null

End of function showmessage

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.64 ms | 1403 KiB | 18 Q