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); next($people); next($people); next($people); prev($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/s0fce
function name:  (null)
number of ops:  38
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                                                 
    8    17        INIT_FCALL                                               'next'
         18        SEND_REF                                                 !0
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'next'
         21        SEND_REF                                                 !0
         22        DO_ICALL                                                 
   10    23        INIT_FCALL                                               'next'
         24        SEND_REF                                                 !0
         25        DO_ICALL                                                 
   11    26        INIT_FCALL                                               'prev'
         27        SEND_REF                                                 !0
         28        DO_ICALL                                                 
   12    29        INIT_FCALL                                               'next'
         30        SEND_REF                                                 !0
         31        DO_ICALL                                                 
   14    32        INIT_FCALL                                               'current'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $23     
         35        ADD                                              ~24     $23, !4
         36        ECHO                                                     ~24
   15    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.41 ms | 1396 KiB | 19 Q