3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = "ابجد"; $split = mb_str_split($input); $reversed = array_reverse($split); print_r($reversed);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZsJNb
function name:  (null)
number of ops:  13
compiled vars:  !0 = $input, !1 = $split, !2 = $reversed
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%D8%A7%D8%A8%D8%AC%D8%AF'
    4     1        INIT_FCALL                                                   'mb_str_split'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
    5     5        INIT_FCALL                                                   'array_reverse'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                             $6      
          8        ASSIGN                                                       !2, $6
    6     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !2
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.3 ms | 1718 KiB | 16 Q