3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = 'VERY LONG STRING'; $s = chunk_split($text, 3, '|'); $s = substr($s, 0, -1); $arr = explode('|', $s); print_r($arr); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H9DAl
function name:  (null)
number of ops:  19
compiled vars:  !0 = $text, !1 = $s, !2 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'VERY+LONG+STRING'
    3     1        INIT_FCALL                                                   'chunk_split'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     3
          4        SEND_VAL                                                     '%7C'
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
    4     7        FRAMELESS_ICALL_3                substr              ~6      !1, 0
          8        OP_DATA                                                      -1
          9        ASSIGN                                                       !1, ~6
    5    10        INIT_FCALL                                                   'explode'
         11        SEND_VAL                                                     '%7C'
         12        SEND_VAR                                                     !1
         13        DO_ICALL                                             $8      
         14        ASSIGN                                                       !2, $8
    6    15        INIT_FCALL                                                   'print_r'
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                                     
    7    18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.99 ms | 2159 KiB | 16 Q