3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); if(empty(get_object_vars($obj))) { alert ("vuoto"); } else { alert ("pieno"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mjNLj
function name:  (null)
number of ops:  16
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'get_object_vars'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        BOOL_NOT                                         ~5      $4
          7      > JMPZ                                                     ~5, ->12
    5     8    >   INIT_FCALL_BY_NAME                                       'alert'
          9        SEND_VAL_EX                                              'vuoto'
         10        DO_FCALL                                      0          
         11      > JMP                                                      ->15
    7    12    >   INIT_FCALL_BY_NAME                                       'alert'
         13        SEND_VAL_EX                                              'pieno'
         14        DO_FCALL                                      0          
    8    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1394 KiB | 15 Q