3v4l.org

run code in 300+ PHP versions simultaneously
<?php $people = array(5, 10, 15, 20); $people[] = count($people); list($mot, $hai, $ba, $bon) = $people; next($people); echo current($people); next($people); next($people); next($people); echo current($people) + $bon;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JgGGu
function name:  (null)
number of ops:  36
compiled vars:  !0 = $people, !1 = $mot, !2 = $hai, !3 = $ba, !4 = $bon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~7      !0
          2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  ~7
    6     4        QM_ASSIGN                                        ~8      !0
          5        FETCH_LIST_R                                     $9      ~8, 0
          6        ASSIGN                                                   !1, $9
          7        FETCH_LIST_R                                     $11     ~8, 1
          8        ASSIGN                                                   !2, $11
          9        FETCH_LIST_R                                     $13     ~8, 2
         10        ASSIGN                                                   !3, $13
         11        FETCH_LIST_R                                     $15     ~8, 3
         12        ASSIGN                                                   !4, $15
         13        FREE                                                     ~8
    7    14        INIT_FCALL                                               'next'
         15        SEND_REF                                                 !0
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'current'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $18     
         20        ECHO                                                     $18
   10    21        INIT_FCALL                                               'next'
         22        SEND_REF                                                 !0
         23        DO_ICALL                                                 
   11    24        INIT_FCALL                                               'next'
         25        SEND_REF                                                 !0
         26        DO_ICALL                                                 
   12    27        INIT_FCALL                                               'next'
         28        SEND_REF                                                 !0
         29        DO_ICALL                                                 
   14    30        INIT_FCALL                                               'current'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                         $22     
         33        ADD                                              ~23     $22, !4
         34        ECHO                                                     ~23
   15    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.65 ms | 1401 KiB | 17 Q