3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f'); //$str = implode(array_walk(array_reverse($arr), function($v,$k){if($k%3==0)$v.=';';})); //print_r(array_map(function($v){if($k%3==0)$v.=';';}), array_reverse($arr)); $str = implode(array_reverse($arr)); echo $str;
based on 8JKFI
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/t3hJj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $arr, !1 = $str
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, <array>
   5     1        INIT_FCALL                                               'implode'
         2        INIT_FCALL                                               'array_reverse'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                         $3      
         5        SEND_VAR                                                 $3
         6        DO_ICALL                                         $4      
         7        ASSIGN                                                   !1, $4
   6     8        ECHO                                                     !1
         9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0