3v4l.org

run code in 300+ PHP versions simultaneously
<?php $indexArray = ['a', 'b', 'c']; $assocArray = ['a' => 'b', 'b' => 'c', 'd' => 'e']; var_dump(array_values($indexArray)); var_dump(array_values($assocArray)); if ($indexArray === array_values($indexArray)) { echo "it works"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/CUeWg
function name:  (null)
number of ops:  21
compiled vars:  !0 = $indexArray, !1 = $assocArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_values'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_values'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'array_values'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        IS_IDENTICAL                                             !0, $8
         18      > JMPZ                                                     ~9, ->20
   10    19    >   ECHO                                                     'it+works'
   11    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.9 ms | 1395 KiB | 17 Q