3v4l.org

run code in 300+ PHP versions simultaneously
<?php class k { protected $b = 123; public function getB() { return $this->b; } } $k = new k(); var_dump($k->getB()); var_dump(!($k->getB())); var_dump(!$k->getB() !== 200);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhBdh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'k'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'getB'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
   13     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'getB'
         10        DO_FCALL                                      0  $6      
         11        BOOL_NOT                                         ~7      $6
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'var_dump'
         15        INIT_METHOD_CALL                                         !0, 'getB'
         16        DO_FCALL                                      0  $9      
         17        BOOL_NOT                                         ~10     $9
         18        IS_NOT_IDENTICAL                                 ~11     ~10, 200
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Class k:
Function getb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhBdh
function name:  getB
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'b'
          1      > RETURN                                                   ~0
    8     2*     > RETURN                                                   null

End of function getb

End of class k.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.3 ms | 1395 KiB | 15 Q