3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (array('Kisi', 0, 1) as $key) { echo "KEY: ".$key.PHP_EOL; $tag = is_numeric($key) ? 'Kisi' : $key; echo "TAG: ".$tag.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 17
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/GXgSZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $key, !1 = $tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_R                                       $2      <array>, ->17
          1    > > FE_FETCH_R                                               $2, !0, ->17
    4     2    >   CONCAT                                           ~3      'KEY%3A+', !0
          3        CONCAT                                           ~4      ~3, '%0A'
          4        ECHO                                                     ~4
    6     5        INIT_FCALL                                               'is_numeric'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->11
          9    >   QM_ASSIGN                                        ~6      'Kisi'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~6      !0
         12    >   ASSIGN                                                   !1, ~6
    8    13        CONCAT                                           ~8      'TAG%3A+', !1
         14        CONCAT                                           ~9      ~8, '%0A'
         15        ECHO                                                     ~9
    3    16      > JMP                                                      ->1
         17    >   FE_FREE                                                  $2
    9    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1395 KiB | 15 Q