3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1395 KiB | 15 Q