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), 'obj_empty' => new stdClass(), ); $mask = "%-15.15s %7.7s\n"; // Print header printf($mask, 'Name', 'Empty'); 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 = 21, Position 2 = 35
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 35
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/mcGAV
function name:  (null)
number of ops:  37
compiled vars:  !0 = $values, !1 = $mask, !2 = $val, !3 = $name, !4 = $empty
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~5      '', 'string_empty'
    5     1        ADD_ARRAY_ELEMENT                                ~5      'false', 'string_bool_f'
    6     2        ADD_ARRAY_ELEMENT                                ~5      'true', 'string_bool_t'
    7     3        ADD_ARRAY_ELEMENT                                ~5      0, 'int_0'
    8     4        ADD_ARRAY_ELEMENT                                ~5      1, 'int_1'
    4     5        ADD_ARRAY_ELEMENT                                ~5      -100, 'int_neg'
   10     6        ADD_ARRAY_ELEMENT                                ~5      100, 'int_norm'
    4     7        ADD_ARRAY_ELEMENT                                ~5      <array>, 'array_empty'
          8        ADD_ARRAY_ELEMENT                                ~5      <array>, 'array_null_val'
   13     9        NEW                                              $6      'stdClass'
         10        DO_FCALL                                      0          
         11        ADD_ARRAY_ELEMENT                                ~5      $6, 'obj_empty'
    3    12        ASSIGN                                                   !0, ~5
   16    13        ASSIGN                                                   !1, '%25-15.15s+%257.7s%0A'
   19    14        INIT_FCALL                                               'printf'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 'Name'
         17        SEND_VAL                                                 'Empty'
         18        DO_ICALL                                                 
   20    19        ECHO                                                     '%0A'
   22    20      > FE_RESET_R                                       $11     !0, ->35
         21    > > FE_FETCH_R                                       ~12     $11, !2, ->35
         22    >   ASSIGN                                                   !3, ~12
   23    23        ISSET_ISEMPTY_CV                                         !2
         24      > JMPZ                                                     ~14, ->27
         25    >   QM_ASSIGN                                        ~15     'true'
         26      > JMP                                                      ->28
         27    >   QM_ASSIGN                                        ~15     'false'
         28    >   ASSIGN                                                   !4, ~15
   25    29        INIT_FCALL                                               'printf'
         30        SEND_VAR                                                 !1
         31        SEND_VAR                                                 !3
         32        SEND_VAR                                                 !4
         33        DO_ICALL                                                 
   22    34      > JMP                                                      ->21
         35    >   FE_FREE                                                  $11
   26    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.52 ms | 1400 KiB | 15 Q