3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { protected $isFloof; protected $isEvil; public function __construct() { $this->isFloof = true; $this->isEvil = true; } } $cat = new Cat(); if ($cat->isEvil) { echo "run"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/XJoFQ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $cat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Cat'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        FETCH_OBJ_R                                      ~4      !0, 'isEvil'
          4      > JMPZ                                                     ~4, ->6
   18     5    >   ECHO                                                     'run'
   19     6    > > RETURN                                                   1

Class Cat:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XJoFQ
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               'isFloof'
          1        OP_DATA                                                  <true>
   12     2        ASSIGN_OBJ                                               'isEvil'
          3        OP_DATA                                                  <true>
   13     4      > RETURN                                                   null

End of function __construct

End of class Cat.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.59 ms | 1393 KiB | 13 Q