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()); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YYHCe
function name:  (null)
number of ops:  12
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        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
   17     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class abc:
Function __debuginfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YYHCe
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:
148.73 ms | 1394 KiB | 17 Q