3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callStoredProc( $storedProc ) { $args = func_get_args(); $storedProc = array_shift( $args ); foreach ( $args as $i => $arg) $args[$i] = "'$arg'"; $argStr = implode( ',', $args ); echo "call ${storedProc}(${argStr})"; } callStoredProc( 'something', 1, 'a', 'b' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5teeW
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'callstoredproc'
          1        SEND_VAL                                                 'something'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 'a'
          4        SEND_VAL                                                 'b'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function callstoredproc:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/5teeW
function name:  callStoredProc
number of ops:  29
compiled vars:  !0 = $storedProc, !1 = $args, !2 = $arg, !3 = $i, !4 = $argStr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        FUNC_GET_ARGS                                    ~5      
          2        ASSIGN                                                   !1, ~5
    7     3        INIT_FCALL                                               'array_shift'
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !0, $7
    8     7      > FE_RESET_R                                       $9      !1, ->16
          8    > > FE_FETCH_R                                       ~10     $9, !2, ->16
          9    >   ASSIGN                                                   !3, ~10
    9    10        ROPE_INIT                                     3  ~14     '%27'
         11        ROPE_ADD                                      1  ~14     ~14, !2
         12        ROPE_END                                      2  ~13     ~14, '%27'
         13        ASSIGN_DIM                                               !1, !3
         14        OP_DATA                                                  ~13
    8    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $9
   11    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '%2C'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !4, $16
   12    22        ROPE_INIT                                     5  ~19     'call+'
         23        ROPE_ADD                                      1  ~19     ~19, !0
         24        ROPE_ADD                                      2  ~19     ~19, '%28'
         25        ROPE_ADD                                      3  ~19     ~19, !4
         26        ROPE_END                                      4  ~18     ~19, '%29'
         27        ECHO                                                     ~18
   13    28      > RETURN                                                   null

End of function callstoredproc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.3 ms | 1402 KiB | 18 Q