3v4l.org

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

Class test:
Function getyo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pJYBb
function name:  getYo
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'yo'
          1        ECHO                                                     ~0
    8     2      > RETURN                                                   null

End of function getyo

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.34 ms | 1395 KiB | 17 Q