3v4l.org

run code in 300+ PHP versions simultaneously
<?php const GIRL = 'mary'; $hello = "hello"; $world = "world"; $id = [ 'hipster' ]; $names['hans'] = 'hans'; $names[$id[0]] = 'hipster'; $names[GIRL] = 'mary'; $hipster = "I said '{$hello}' before the {$world} thought it was cool"; echo "{{$hipster}} said the {$names['hans']} the hipster to {$names[GIRL]} the {$names[$id[0]]}.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ATJea
function name:  (null)
number of ops:  34
compiled vars:  !0 = $hello, !1 = $world, !2 = $id, !3 = $names, !4 = $hipster
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'GIRL', 'mary'
    5     1        ASSIGN                                                   !0, 'hello'
    6     2        ASSIGN                                                   !1, 'world'
    8     3        ASSIGN                                                   !2, <array>
    9     4        ASSIGN_DIM                                               !3, 'hans'
          5        OP_DATA                                                  'hans'
   10     6        FETCH_DIM_R                                      ~9      !2, 0
          7        ASSIGN_DIM                                               !3, ~9
          8        OP_DATA                                                  'hipster'
   11     9        FETCH_CONSTANT                                   ~11     'GIRL'
         10        ASSIGN_DIM                                               !3, ~11
         11        OP_DATA                                                  'mary'
   13    12        ROPE_INIT                                     5  ~14     'I+said+%27'
         13        ROPE_ADD                                      1  ~14     ~14, !0
         14        ROPE_ADD                                      2  ~14     ~14, '%27+before+the+'
         15        ROPE_ADD                                      3  ~14     ~14, !1
         16        ROPE_END                                      4  ~13     ~14, '+thought+it+was+cool'
         17        ASSIGN                                                   !4, ~13
   15    18        ROPE_INIT                                     9  ~24     '%7B'
         19        ROPE_ADD                                      1  ~24     ~24, !4
         20        ROPE_ADD                                      2  ~24     ~24, '%7D+said+the+'
         21        FETCH_DIM_R                                      ~18     !3, 'hans'
         22        ROPE_ADD                                      3  ~24     ~24, ~18
         23        ROPE_ADD                                      4  ~24     ~24, '+the+hipster+to+'
         24        FETCH_CONSTANT                                   ~19     'GIRL'
         25        FETCH_DIM_R                                      ~20     !3, ~19
         26        ROPE_ADD                                      5  ~24     ~24, ~20
         27        ROPE_ADD                                      6  ~24     ~24, '+the+'
         28        FETCH_DIM_R                                      ~21     !2, 0
         29        FETCH_DIM_R                                      ~22     !3, ~21
         30        ROPE_ADD                                      7  ~24     ~24, ~22
         31        ROPE_END                                      8  ~23     ~24, '.'
         32        ECHO                                                     ~23
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1395 KiB | 13 Q