3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); $input = array(); if ( empty( $input['foo'] ) ) { var_dump( "empty" ); } else { var_dump( "error" ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fgOtc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    6     7        ASSIGN                                                   !0, <array>
    8     8        ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'foo'
          9      > JMPZ                                                     ~4, ->14
    9    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'empty'
         12        DO_ICALL                                                 
         13      > JMP                                                      ->17
   11    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAL                                                 'error'
         16        DO_ICALL                                                 
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.93 ms | 1395 KiB | 19 Q