3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $a = 3; public function __construct($i) { $this->a = $i + 13; } public function printA() { echo $this->a; } } $foo = new Foo(4); var_export(serialize($foo));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qT8fZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Foo'
          1        SEND_VAL_EX                                              4
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        INIT_FCALL                                               'var_export'
          5        INIT_FCALL                                               'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qT8fZ
function name:  __construct
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ADD                                              ~2      !0, 13
          2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  ~2
    8     4      > RETURN                                                   null

End of function __construct

Function printa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qT8fZ
function name:  printA
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'a'
          1        ECHO                                                     ~0
   12     2      > RETURN                                                   null

End of function printa

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.27 ms | 1395 KiB | 17 Q