3v4l.org

run code in 300+ PHP versions simultaneously
<?php function revert($str) { $revertStr = ''; foreach ($obtainStrList as $obtainStr) { $revertStr .= ' '; for ($i = 1; $i < mb_strlen($obtainStr) + 1; $i++) { $revertStr .= mb_substr($obtainStr, -$i, 1); } } return $revertStr; } //echo revert('Delivery Club, ZakaZaka'); var_dump(preg_match_all('/\w+/', $str, $obtainStrList));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HSDn8
function name:  (null)
number of ops:  9
compiled vars:  !0 = $str, !1 = $obtainStrList
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Cw%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function revert:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 22
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 7
Branch analysis from position: 21
Branch analysis from position: 7
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/HSDn8
function name:  revert
number of ops:  25
compiled vars:  !0 = $str, !1 = $revertStr, !2 = $obtainStrList, !3 = $obtainStr, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, ''
    7     2      > FE_RESET_R                                       $6      !2, ->22
          3    > > FE_FETCH_R                                               $6, !3, ->22
    8     4    >   ASSIGN_OP                                     8          !1, '+'
    9     5        ASSIGN                                                   !4, 1
          6      > JMP                                                      ->15
   10     7    >   INIT_FCALL                                               'mb_substr'
          8        SEND_VAR                                                 !3
          9        MUL                                              ~9      !4, -1
         10        SEND_VAL                                                 ~9
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $10     
         13        ASSIGN_OP                                     8          !1, $10
    9    14        PRE_INC                                                  !4
         15    >   INIT_FCALL                                               'mb_strlen'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $13     
         18        ADD                                              ~14     $13, 1
         19        IS_SMALLER                                               !4, ~14
         20      > JMPNZ                                                    ~15, ->7
    7    21    > > JMP                                                      ->3
         22    >   FE_FREE                                                  $6
   15    23      > RETURN                                                   !1
   16    24*     > RETURN                                                   null

End of function revert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.53 ms | 1400 KiB | 21 Q