3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $my_array = array("Dog","Cat","Horse"); list($a, $b, $c) = $my_array; echo "I have several animals, a $a, a $b and a $c."; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b54Tp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $my_array, !1 = $a, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    6     1        ASSIGN                                                   !0, <array>
    8     2        QM_ASSIGN                                        ~5      !0
          3        FETCH_LIST_R                                     $6      ~5, 0
          4        ASSIGN                                                   !1, $6
          5        FETCH_LIST_R                                     $8      ~5, 1
          6        ASSIGN                                                   !2, $8
          7        FETCH_LIST_R                                     $10     ~5, 2
          8        ASSIGN                                                   !3, $10
          9        FREE                                                     ~5
    9    10        ROPE_INIT                                     7  ~13     'I+have+several+animals%2C+a+'
         11        ROPE_ADD                                      1  ~13     ~13, !1
         12        ROPE_ADD                                      2  ~13     ~13, '%2C+a+'
         13        ROPE_ADD                                      3  ~13     ~13, !2
         14        ROPE_ADD                                      4  ~13     ~13, '+and+a+'
         15        ROPE_ADD                                      5  ~13     ~13, !3
         16        ROPE_END                                      6  ~12     ~13, '.'
         17        ECHO                                                     ~12
   11    18        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   13    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.4 ms | 1394 KiB | 13 Q