3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FOO', array_flip(array('foo' => 'bar'))); var_dump(current(FOO));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6ZY7U
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'FOO'
          2        INIT_FCALL                                               'array_flip'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'current'
          9        FETCH_CONSTANT                                   ~2      'FOO'
         10        SEND_VAL                                                 ~2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.96 ms | 1394 KiB | 21 Q