3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [ 'Q' => 'How did the chicken cross the road?', 'A' => 'With his feet you stupid shit.' ], [ 'Q' => 'How did the monkey cross the road?', 'A' => 'Seriously, with his feet. What are you, retarded?', ], ]; foreach($data as $pair){ echo "Question: {$pair['Q']} \n"; echo "Answer: {$pair['A']} \n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/0Qrg6
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $pair
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
   15     3    >   ROPE_INIT                                     3  ~6      'Question%3A+'
          4        FETCH_DIM_R                                      ~4      !1, 'Q'
          5        ROPE_ADD                                      1  ~6      ~6, ~4
          6        ROPE_END                                      2  ~5      ~6, '+%0A'
          7        ECHO                                                     ~5
   16     8        ROPE_INIT                                     3  ~10     'Answer%3A+++'
          9        FETCH_DIM_R                                      ~8      !1, 'A'
         10        ROPE_ADD                                      1  ~10     ~10, ~8
         11        ROPE_END                                      2  ~9      ~10, '+%0A'
         12        ECHO                                                     ~9
   14    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
   17    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.23 ms | 1385 KiB | 13 Q