3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeCatList($param){ $arResult = array(); if(preg_match_all("/((?:[a-dA-DавсдАВСД]1)|(?:[a-dA-DавсдАВСД][eEеЕ]?)|([tTтТ][rRрР]|[tTтТ][bBбБ]))/u", $param["string"], $mCats)){ //unset($mCats[0]); print_r($mCats); return asort($mCats); } else return false; } print_r(makeCatList(array("string"=>"Ав1beс1edeTr")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvkf2
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'makecatlist'
          2        SEND_VAL                                                 <array>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function makecatlist:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pvkf2
function name:  makeCatList
number of ops:  19
compiled vars:  !0 = $param, !1 = $arResult, !2 = $mCats
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%28%28%3F%3A%5Ba-dA-D%D0%B0%D0%B2%D1%81%D0%B4%D0%90%D0%92%D0%A1%D0%94%5D1%29%7C%28%3F%3A%5Ba-dA-D%D0%B0%D0%B2%D1%81%D0%B4%D0%90%D0%92%D0%A1%D0%94%5D%5BeE%D0%B5%D0%95%5D%3F%29%7C%28%5BtT%D1%82%D0%A2%5D%5BrR%D1%80%D0%A0%5D%7C%5BtT%D1%82%D0%A2%5D%5BbB%D0%B1%D0%91%5D%29%29%2Fu'
    5     4        FETCH_DIM_R                                      ~4      !0, 'string'
          5        SEND_VAL                                                 ~4
          6        SEND_REF                                                 !2
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->17
    7     9    >   INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'asort'
         13        SEND_REF                                                 !2
         14        DO_ICALL                                         $7      
         15      > RETURN                                                   $7
         16*       JMP                                                      ->18
    9    17    > > RETURN                                                   <false>
   10    18*     > RETURN                                                   null

End of function makecatlist

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.15 ms | 1390 KiB | 20 Q