3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1 => "Hello"]; var_dump($arr); $x = "arr"; $str = "var_dump(" . $x . "[1]);"; eval($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UYeN0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $x, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4        ASSIGN                                                   !1, 'arr'
   11     5        CONCAT                                           ~6      'var_dump%28', !1
          6        CONCAT                                           ~7      ~6, '%5B1%5D%29%3B'
          7        ASSIGN                                                   !2, ~7
   13     8        INCLUDE_OR_EVAL                                          !2, EVAL
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.59 ms | 1385 KiB | 15 Q