3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(); var_dump(array_keys($array)); if (!empty($array)) { var_dump(array_combine($array, $array));}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/09ObK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    4     7        ISSET_ISEMPTY_CV                                 ~4      !0
          8        BOOL_NOT                                         ~5      ~4
          9      > JMPZ                                                     ~5, ->17
    5    10    >   INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_combine'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.67 ms | 1394 KiB | 19 Q