3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(0,1,2,3,4); function g($array, $len){ $maxKey =count($array)-1-$len; echo $maaxKey; } g($a, 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FraN1
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'g'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function g:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FraN1
function name:  g
number of ops:  8
compiled vars:  !0 = $array, !1 = $len, !2 = $maxKey, !3 = $maaxKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        COUNT                                            ~4      !0
          3        SUB                                              ~5      ~4, 1
          4        SUB                                              ~6      ~5, !1
          5        ASSIGN                                                   !2, ~6
    7     6        ECHO                                                     !3
    8     7      > RETURN                                                   null

End of function g

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.85 ms | 1397 KiB | 14 Q