3v4l.org

run code in 300+ PHP versions simultaneously
<?php class GenericMessage { protected $q; } class Message extends GenericMessage { protected $p; public function __set ($key, $value) { if (!property_exists($this, $key)) { echo "Key {$key} not found"; } } } $m = new Message; $m->p = 'p'; $m->q = 'q';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFUHb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Message'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        ASSIGN_OBJ                                               !0, 'p'
          4        OP_DATA                                                  'p'
   17     5        ASSIGN_OBJ                                               !0, 'q'
          6        OP_DATA                                                  'q'
          7      > RETURN                                                   1

Class GenericMessage: [no user functions]
Class Message:
Function __set:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/QFUHb
function name:  __set
number of ops:  14
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'property_exists'
          3        FETCH_THIS                                       ~2      
          4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        BOOL_NOT                                         ~4      $3
          8      > JMPZ                                                     ~4, ->13
   10     9    >   ROPE_INIT                                     3  ~6      'Key+'
         10        ROPE_ADD                                      1  ~6      ~6, !0
         11        ROPE_END                                      2  ~5      ~6, '+not+found'
         12        ECHO                                                     ~5
   12    13    > > RETURN                                                   null

End of function __set

End of class Message.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.82 ms | 1400 KiB | 15 Q