3v4l.org

run code in 300+ PHP versions simultaneously
<?php function name($num){ $array = range('A','Z'); $array = array_filter(array_merge(array(0), $array)); return $array[$num]; } echo name(12);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kl9jn
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'name'
          1        SEND_VAL                                                 12
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kl9jn
function name:  name
number of ops:  17
compiled vars:  !0 = $num, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 'A'
          3        SEND_VAL                                                 'Z'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    4     6        INIT_FCALL                                               'array_filter'
          7        INIT_FCALL                                               'array_merge'
          8        SEND_VAL                                                 <array>
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
    5    14        FETCH_DIM_R                                      ~7      !1, !0
         15      > RETURN                                                   ~7
    6    16*     > RETURN                                                   null

End of function name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
303.3 ms | 1015 KiB | 17 Q