3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc { public $a = 'A'; public function __debugInfo() { return array("\0*\0b"=>'B'); } } $a = new abc(); print_r($a->__debugInfo(array(), 456)); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6Kbl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'abc'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_FCALL                                               'print_r'
          4        INIT_METHOD_CALL                                         !0, '__debugInfo'
          5        SEND_VAL_EX                                              <array>
          6        SEND_VAL_EX                                              456
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
   17    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class abc:
Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N6Kbl
function name:  __debugInfo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   <array>
   10     1*     > RETURN                                                   null

End of function __debuginfo

End of class abc.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1386 KiB | 17 Q