3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; var_dump(['a' => $a, 'b' => $b]); var_dump(compact('a', 'v'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pHACp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_ARRAY                                       ~3      !0, 'a'
          3        ADD_ARRAY_ELEMENT                                ~3      !1, 'b'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'compact'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'v'
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.05 ms | 1001 KiB | 15 Q