3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a = 'asdf', $b = '') { var_dump(func_get_args()); } foo(); foo(NULL, 'qwer');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dT0dB
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0          
    7     2        INIT_FCALL                                               'foo'
          3        SEND_VAL                                                 null
          4        SEND_VAL                                                 'qwer'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dT0dB
function name:  foo
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      'asdf'
          1        RECV_INIT                                        !1      ''
    3     2        INIT_FCALL                                               'var_dump'
          3        FUNC_GET_ARGS                                    ~2      
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    4     6      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.27 ms | 1401 KiB | 17 Q