3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function blah() { echo 'test'; } } $test = new test(); $serialized = serialize($test); echo $serialized; $unserialized = unserialize($serialized); $unserialized->blah();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BPOHT
function name:  (null)
number of ops:  15
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
   13     7        ECHO                                                     !1
   15     8        INIT_FCALL                                               'unserialize'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
   18    12        INIT_METHOD_CALL                                         !2, 'blah'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class test:
Function blah:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BPOHT
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:
182.26 ms | 1395 KiB | 17 Q