3v4l.org

run code in 500+ PHP versions simultaneously
<?php function myfunc( $arg1, $arg2 = 'sth', $arg3 = 'sth else' ){ echo $arg2; } myfunc( true, $arg2, $arg3 = 'new value' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dAEYp
function name:  (null)
number of ops:  7
compiled vars:  !0 = $arg2, !1 = $arg3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'myfunc'
          1        SEND_VAL                                                     <true>
          2        SEND_VAR                                                     !0
          3        ASSIGN                                               ~2      !1, 'new+value'
          4        SEND_VAL                                                     ~2
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dAEYp
function name:  myfunc
number of ops:  5
compiled vars:  !0 = $arg1, !1 = $arg2, !2 = $arg3
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      'sth'
          2        RECV_INIT                                            !2      'sth+else'
    4     3        ECHO                                                         !1
    5     4      > RETURN                                                       null

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.09 ms | 2553 KiB | 14 Q