3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. (Code = 62) Position 1 = -2
filename:       /in/Ro3Bt
function name:  (null)
number of ops:  23
compiled vars:  !0 = $k
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  11     1        NEW                                              $2      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  12     4        INIT_FCALL                                               'var_dump'
         5        INIT_METHOD_CALL                                         !0, 'getB'
         6        DO_FCALL                                      0  $5      
         7        SEND_VAR                                                 $5
         8        DO_ICALL                                                 
  13     9        INIT_FCALL                                               'var_dump'
        10        INIT_METHOD_CALL                                         !0, 'getB'
        11        DO_FCALL                                      0  $7      
        12        BOOL_NOT                                         ~8      $7
        13        SEND_VAL                                                 ~8
        14        DO_ICALL                                                 
  14    15        INIT_FCALL                                               'var_dump'
        16        INIT_METHOD_CALL                                         !0, 'getB'
        17        DO_FCALL                                      0  $10     
        18        BOOL_NOT                                         ~11     $10
        19        IS_NOT_IDENTICAL                                 ~12     ~11, 200
        20        SEND_VAL                                                 ~12
        21        DO_ICALL                                                 
        22      > RETURN                                                   1

Class k:
Function getb:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/Ro3Bt
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 7.3.0