3v4l.org

run code in 300+ 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/bne9t
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/bne9t
function name:  AlphabetSoup
number of ops:  15
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        INIT_FCALL                                               'implode'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
   10    13      > RETURN                                                   !2
   12    14*     > RETURN                                                   null

End of function alphabetsoup

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 1397 KiB | 20 Q