3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a', 'b', 3, 4); if(is_array($array)) foreach($array as $int) echo 'ok'; if(!is_numeric($int)) echo $int;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 7
Branch analysis from position: 8
filename:       /in/0l25b
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~3, ->8
    4     3    > > FE_RESET_R                                       $4      !0, ->7
          4    > > FE_FETCH_R                                               $4, !1, ->7
    5     5    >   ECHO                                                     'ok'
    4     6      > JMP                                                      ->4
          7    >   FE_FREE                                                  $4
    6     8    >   INIT_FCALL                                               'is_numeric'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        BOOL_NOT                                         ~6      $5
         12      > JMPZ                                                     ~6, ->14
    7    13    >   ECHO                                                     !1
         14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.76 ms | 1395 KiB | 15 Q