3v4l.org

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

Class Test:
Function __sleep:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jnNYj
function name:  __sleep
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'wat'
    6     1      > RETURN                                                   null

End of function __sleep

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.44 ms | 1394 KiB | 17 Q