3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'string_empty' => '', 'string_bool_f' => 'false', 'string_bool_t' => 'true', 'int_0' => 0, 'int_1' => 1, 'int_neg' => -100, 'int_norm' => 100, 'array_empty' => array(), 'array_null_val' => array(null), ); foreach ($values as $name => $val) { echo "$name\t\t\t". (bool) empty($val) .PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 12
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/ejtvs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $values, !1 = $val, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1      > FE_RESET_R                                       $4      !0, ->12
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->12
          3    >   ASSIGN                                                   !2, ~5
   16     4        NOP                                                      
          5        FAST_CONCAT                                      ~7      !2, '%09%09%09'
          6        ISSET_ISEMPTY_CV                                 ~8      !1
          7        BOOL                                             ~9      ~8
          8        CONCAT                                           ~10     ~7, ~9
          9        CONCAT                                           ~11     ~10, '%0A'
         10        ECHO                                                     ~11
   15    11      > JMP                                                      ->2
         12    >   FE_FREE                                                  $4
   17    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184 ms | 1393 KiB | 13 Q