3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Some { public $f1; public $f2; public function __consturct($f1, $f2) { $this->f1 = $f1; $this->f2 = $f2; } } $x = memory_get_usage();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNekN
function name:  (null)
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'memory_get_usage'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class Some:
Function __consturct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZNekN
function name:  __consturct
number of ops:  7
compiled vars:  !0 = $f1, !1 = $f2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_OBJ                                               'f1'
          3        OP_DATA                                                  !0
   11     4        ASSIGN_OBJ                                               'f2'
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   null

End of function __consturct

End of class Some.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.39 ms | 1398 KiB | 15 Q