3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { /** @var int */ private $value; /** constructs the Foo * @param int $value An integer value */ public function __construct($value) { $this->value = (int)$value; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eFrf5
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

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

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.69 ms | 1392 KiB | 13 Q