3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { protected $_name = 'Joe'; function name($default = null) { var_dump(func_get_arg()); } } $test = new Test(); $test->name();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kp6OI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_METHOD_CALL                                         !0, 'name'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Person:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kp6OI
function name:  name
number of ops:  7
compiled vars:  !0 = $default
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'func_get_arg'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    6     6      > RETURN                                                   null

End of function name

End of class Person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1394 KiB | 17 Q