3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'); $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/hevTZ
function name:  (null)
number of ops:  20
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                                                   'array_reverse'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                             $3      
          7        FRAMELESS_ICALL_1                implode             ~4      $3
          8        SEND_VAL                                                     ~4
          9        SEND_VAL                                                     3
         10        SEND_VAL                                                     '%3B'
         11        DO_ICALL                                             $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                             $6      
         14        SEND_VAR                                                     $6
         15        SEND_VAL                                                     '%3B'
         16        DO_ICALL                                             $7      
         17        ASSIGN                                                       !1, $7
    4    18        ECHO                                                         !1
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
204.31 ms | 3262 KiB | 17 Q