3v4l.org

run code in 300+ PHP versions simultaneously
<?php function AlphabetSoup($str) { $arr = str_split($str, 1); $sorted = sort($arr); $imp = implode($sorted); return $imp; } echo AlphabetSoup('hfgdjsnidij');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7tBF
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/A7tBF
function name:  AlphabetSoup
number of ops:  16
compiled vars:  !0 = $str, !1 = $arr, !2 = $sorted, !3 = $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                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    7    10        INIT_FCALL                                               'implode'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !3, $8
   10    14      > RETURN                                                   !3
   12    15*     > RETURN                                                   null

End of function alphabetsoup

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.36 ms | 1397 KiB | 20 Q