3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'); $str = ltrim(strrev(chunk_split(implode(array_reverse($arr)), 3, ';')),';'); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2Glo
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'ltrim'
          2        INIT_FCALL                                               'strrev'
          3        INIT_FCALL                                               'chunk_split'
          4        INIT_FCALL                                               'implode'
          5        INIT_FCALL                                               'array_reverse'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        SEND_VAL                                                 3
         12        SEND_VAL                                                 '%3B'
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        SEND_VAL                                                 '%3B'
         18        DO_ICALL                                         $7      
         19        ASSIGN                                                   !1, $7
    4    20        ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.14 ms | 1395 KiB | 23 Q