3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fopen(__FILE__, "r"); $a = array($fp => 'resource'); var_dump($a); var_dump(array_combine($a, $a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DJLgd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fp, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 '%2Fin%2FDJLgd'
          2        SEND_VAL                                                 'r'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        INIT_ARRAY                                       ~4      'resource', !0
          6        ASSIGN                                                   !1, ~4
    4     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'array_combine'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.57 ms | 1399 KiB | 19 Q