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) { $empty = empty($val) ? 'true' : 'false'; printf("%-10.10s %5.5s\n", $name, $empty); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/1np7i
function name:  (null)
number of ops:  18
compiled vars:  !0 = $values, !1 = $val, !2 = $name, !3 = $empty
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1      > FE_RESET_R                                       $5      !0, ->16
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->16
          3    >   ASSIGN                                                   !2, ~6
   16     4        ISSET_ISEMPTY_CV                                         !1
          5      > JMPZ                                                     ~8, ->8
          6    >   QM_ASSIGN                                        ~9      'true'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~9      'false'
          9    >   ASSIGN                                                   !3, ~9
   18    10        INIT_FCALL                                               'printf'
         11        SEND_VAL                                                 '%25-10.10s+%255.5s%0A'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
   15    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $5
   19    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1399 KiB | 15 Q