3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $_sqlStatements; protected $sqlStatements; public function __sleep() { return ["\0*\0sqlStatements"]; } } class B extends A {} var_dump(serialize(new B));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ckU7
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'serialize'
          2        NEW                                              $0      'B'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function __sleep

End of class A.

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

End of function __sleep

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.57 ms | 1011 KiB | 15 Q