3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( array_keys([]) !== range(0, count([]) - 1) ); var_dump( array_keys([1,2]) !== range(0, count([1,2]) - 1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HQkQ
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_keys'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 0
          6        COUNT                                            ~1      <array>
          7        SUB                                              ~2      ~1, 1
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10        IS_NOT_IDENTICAL                                 ~4      $0, $3
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                                 
    3    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_keys'
         15        SEND_VAL                                                 <array>
         16        DO_ICALL                                         $6      
         17        INIT_FCALL                                               'range'
         18        SEND_VAL                                                 0
         19        COUNT                                            ~7      <array>
         20        SUB                                              ~8      ~7, 1
         21        SEND_VAL                                                 ~8
         22        DO_ICALL                                         $9      
         23        IS_NOT_IDENTICAL                                 ~10     $6, $9
         24        SEND_VAL                                                 ~10
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.02 ms | 1395 KiB | 19 Q