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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.55 ms | 1396 KiB | 15 Q