3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[ "example2" => "index.php", "submenu" => ["name" => "sub menu","hi" => "index.php","hello" => "index.php"], "example3" => "index.php" ]'; $arr = eval("return $string;"); foreach($arr as $foo){ echo $foo; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/njNEJ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $arr, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B+%22example2%22+%3D%3E+%22index.php%22%2C+%22submenu%22+%3D%3E+%5B%22name%22+%3D%3E+%22sub+menu%22%2C%22hi%22+%3D%3E+%22index.php%22%2C%22hello%22+%3D%3E+%22index.php%22%5D%2C+%22example3%22+%3D%3E+%22index.php%22+%5D'
    5     1        ROPE_INIT                                     3  ~5      'return+'
          2        ROPE_ADD                                      1  ~5      ~5, !0
          3        ROPE_END                                      2  ~4      ~5, '%3B'
          4        INCLUDE_OR_EVAL                                  $7      ~4, EVAL
          5        ASSIGN                                                   !1, $7
    7     6      > FE_RESET_R                                       $9      !1, ->10
          7    > > FE_FETCH_R                                               $9, !2, ->10
    8     8    >   ECHO                                                     !2
    7     9      > JMP                                                      ->7
         10    >   FE_FREE                                                  $9
    9    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.62 ms | 1393 KiB | 13 Q