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 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/NHPD5
function name:  (null)
number of ops:  12
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        FETCH_CONSTANT                                   ~4      'square'
          5        SEND_VAL                                                 ~4
          6        FETCH_CONSTANT                                   ~5      'hasSides'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                         $6      
          9      > JMPZ                                                     $6, ->11
   14    10    >   ECHO                                                     'Eu+tenho+lados%21'
   15    11    > > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.6 ms | 1394 KiB | 15 Q