3v4l.org

run code in 300+ PHP versions simultaneously
<?php $row = 'Foo'; echo "What is \$row?\n"; var_dump($row); $rows = ['Hello', 'Test', 'Wow']; echo "Now lets run the same thing again, only this time not as reference\n"; foreach ($rows as $row) { var_dump($row); } echo "And print \$row for the sake of it\n"; var_dump($row);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/14sVQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $row, !1 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Foo'
    5     1        ECHO                                                     'What+is+%24row%3F%0A'
    7     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    9     5        ASSIGN                                                   !1, <array>
   12     6        ECHO                                                     'Now+lets+run+the+same+thing+again%2C+only+this+time+not+as+reference%0A'
   14     7      > FE_RESET_R                                       $5      !1, ->13
          8    > > FE_FETCH_R                                               $5, !0, ->13
   16     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
   14    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $5
   19    14        ECHO                                                     'And+print+%24row+for+the+sake+of+it%0A'
   21    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.35 ms | 1395 KiB | 15 Q