3v4l.org

run code in 500+ PHP versions simultaneously
<?php function AlphabetSoup($str) { $arr = str_split($str, 1); sort($arr); $imp = implode('', $arr); return $imp; } echo AlphabetSoup('hfgdjsnidij');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIUSZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                                   'alphabetsoup'
          1        SEND_VAL                                                     'hfgdjsnidij'
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

Function alphabetsoup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIUSZ
function name:  AlphabetSoup
number of ops:  13
compiled vars:  !0 = $str, !1 = $arr, !2 = $imp
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
    5     1        INIT_FCALL                                                   'str_split'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     1
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
    6     6        INIT_FCALL                                                   'sort'
          7        SEND_REF                                                     !1
          8        DO_ICALL                                                     
    7     9        FRAMELESS_ICALL_2                implode             ~6      '', !1
         10        ASSIGN                                                       !2, ~6
   10    11      > RETURN                                                       !2
   12    12*     > RETURN                                                       null

End of function alphabetsoup

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
184.79 ms | 2901 KiB | 16 Q