3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (false) { $willNeverBeDefined = true; } $result = compact('willNeverBeDefined'); var_dump($result, empty($result), $result === array());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 2
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
filename:       /in/9Z3aP
function name:  (null)
number of ops:  14
compiled vars:  !0 = $willNeverBeDefined, !1 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E > > JMPZ                                                         <false>, ->2
    4     1    >   ASSIGN                                                       !0, <true>
    6     2    >   INIT_FCALL                                                   'compact'
          3        SEND_VAL                                                     'willNeverBeDefined'
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
    7     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !1
          8        ISSET_ISEMPTY_CV                                     ~5      !1
          9        SEND_VAL                                                     ~5
         10        IS_IDENTICAL                                         ~6      !1, <array>
         11        SEND_VAL                                                     ~6
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.28 ms | 2641 KiB | 15 Q