3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Hello Friend"; $arr1 = str_split($str); $arr2 = str_split($str, 5); print_r($arr1); print_r($arr2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/19RhQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $arr1, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello+Friend'
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    7    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 1386 KiB | 17 Q