3v4l.org

run code in 300+ PHP versions simultaneously
<?php $saida = 'vazio'; $array = array( 'Foo' => NULL ); for( $i = 0; $i <= 10000; $i ) { if (array_key_exists($array['Foo'])){ echo $i; } } echo $saida;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
Branch analysis from position: 10
filename:       /in/qW2D8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $saida, !1 = $array, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'vazio'
    4     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->10
    8     4    >   INIT_FCALL                                               'array_key_exists'
          5        FETCH_DIM_R                                      ~6      !1, 'Foo'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8      > JMPZ                                                     $7, ->10
    9     9    >   ECHO                                                     !2
    7    10    >   IS_SMALLER_OR_EQUAL                                      !2, 10000
         11      > JMPNZ                                                    ~8, ->4
   14    12    >   ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.58 ms | 1394 KiB | 15 Q