3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', 'c', 'd', 'e', 'f'); $str = implode('', array_walk(array_reverse($arr), function(&$v,$k){if($k%3==0)$v.=';';})); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/66gtD
function name:  (null)
number of ops:  16
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                                               'implode'
          2        SEND_VAL                                                 ''
          3        INIT_FCALL                                               'array_walk'
          4        INIT_FCALL                                               'array_reverse'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR_NO_REF                               0          $3
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F66gtD%3A3%240'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    4    14        ECHO                                                     !1
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F66gtD%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/66gtD
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        MOD                                              ~2      !1, 3
          3        IS_EQUAL                                                 ~2, 0
          4      > JMPZ                                                     ~3, ->6
          5    >   ASSIGN_OP                                     8          !0, '%3B'
          6    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F66gtD%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.03 ms | 1395 KiB | 19 Q