3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function blah() { echo 'test'; } } $test = new test(); $serialized = serialize($test); $unserialized = unserialize($serialized); $unserialized->blah();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2986g
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test, !1 = $serialized, !2 = $unserialized
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   12     3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
   14     7        INIT_FCALL                                               'unserialize'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
   17    11        INIT_METHOD_CALL                                         !2, 'blah'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

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

End of function blah

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.03 ms | 1395 KiB | 17 Q