3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n=0; echo $n; $n+=10; echo $n; $n+=10; echo $n; $a = array(1,2,3,4,5,6); var_dump (array_slice($a,7));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wjf6T
function name:  (null)
number of ops:  15
compiled vars:  !0 = $n, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ECHO                                                     !0
    4     2        ASSIGN_OP                                     1          !0, 10
    5     3        ECHO                                                     !0
    6     4        ASSIGN_OP                                     1          !0, 10
    7     5        ECHO                                                     !0
    9     6        ASSIGN                                                   !1, <array>
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 7
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.55 ms | 1394 KiB | 17 Q