3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 2, 3); if (array_values($a) === $a) { return true; } for (reset($a); is_int($key = key($a)); next($a));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 11
Branch analysis from position: 20
Branch analysis from position: 11
filename:       /in/dN5tX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        IS_IDENTICAL                                             !0, $3
          5      > JMPZ                                                     ~4, ->7
          6    > > RETURN                                                   <true>
    9     7    >   INIT_FCALL                                               'reset'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
         10      > JMP                                                      ->14
         11    >   INIT_FCALL                                               'next'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
         14    >   INIT_FCALL                                               'key'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        ASSIGN                                           ~8      !1, $7
         18        TYPE_CHECK                                   16          ~8
         19      > JMPNZ                                                    ~9, ->11
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1395 KiB | 21 Q