3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.82 ms | 1394 KiB | 15 Q