3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Shape { public $hasSides = true; } class Square extends Shape { } $square = new Square(); // Adicione seu código abaixo! if (property_exists($square, hasSides)) { echo "Eu tenho lados!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/cEPmm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $square
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Square'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_FCALL                                               'property_exists'
          4        SEND_VAR                                                 !0
          5        FETCH_CONSTANT                                   ~4      'hasSides'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->10
   14     9    >   ECHO                                                     'Eu+tenho+lados%21'
   15    10    > > RETURN                                                   1

Class Shape: [no user functions]
Class Square: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.49 ms | 1394 KiB | 15 Q