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 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/0v6IK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $square, !1 = $hasSides
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Square'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_FCALL                                               'property_exists'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->9
   14     8    >   ECHO                                                     'Eu+tenho+lados%21'
   15     9    > > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1397 KiB | 16 Q