3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = array(); var_dump(!empty($foo)); var_dump(isset($foo) && $foo > 0);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/APKCl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        BOOL_NOT                                         ~3      ~2
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        ISSET_ISEMPTY_CV                                 ~5      !0
          8      > JMPZ_EX                                          ~5      ~5, ->11
          9    >   IS_SMALLER                                       ~6      0, !0
         10        BOOL                                             ~5      ~6
         11    >   SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.11 ms | 1385 KiB | 15 Q