3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); $x = 12; $y = &$x; $ar = ['a' => 1, 'b' => 2]; $z = &$ar['b']; var_dump($ar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gW1sB
function name:  (null)
number of ops:  20
compiled vars:  !0 = $x, !1 = $y, !2 = $ar, !3 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'ini_set'
          5        SEND_VAL                                                 'display_startup_errors'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'error_reporting'
          9        SEND_VAL                                                 -1
         10        DO_ICALL                                                 
    6    11        ASSIGN                                                   !0, 12
    7    12        ASSIGN_REF                                               !1, !0
    8    13        ASSIGN                                                   !2, <array>
    9    14        FETCH_DIM_W                                      $10     !2, 'b'
         15        ASSIGN_REF                                               !3, $10
   10    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.98 ms | 1395 KiB | 19 Q