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); print_r($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7tm88
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $test, !2 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_CLASS                                   0  $3      !1
          1        NEW                                              $4      $3
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
   13     4        INIT_FCALL                                               'serialize'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !2, $7
   15     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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