3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.32 ms | 1010 KiB | 15 Q