3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = 'longname1'; print_r(str_split($string, strlen($string) - 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uKuDp
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'longname1'
    5     1        INIT_FCALL                                                   'print_r'
          2        INIT_FCALL                                                   'str_split'
          3        SEND_VAR                                                     !0
          4        STRLEN                                               ~2      !0
          5        SUB                                                  ~3      ~2, 1
          6        SEND_VAL                                                     ~3
          7        DO_ICALL                                             $4      
          8        SEND_VAR                                                     $4
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.63 ms | 2188 KiB | 15 Q