3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SerializesModels { /** * Prepare the instance for serialization. * * @return array */ public function __sleep() { return []; } /** * Restore the model after serialization. * * @return void */ public function __wakeup() { } } class a { use SerializesModels; use SerializesModels; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tA0he
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   DECLARE_CLASS                                            'a'
   27     1      > RETURN                                                   1

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

End of function __sleep

Function __wakeup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tA0he
function name:  __wakeup
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   null

End of function __wakeup

End of class SerializesModels.

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.06 ms | 998 KiB | 13 Q