3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 84739173848113; $string = (string)$int; $stringParts = str_split($string); rsort($stringParts); print_r($stringParts); echo implode('', $stringParts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mpri2
function name:  (null)
number of ops:  19
compiled vars:  !0 = $int, !1 = $string, !2 = $stringParts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 84739173848113
    4     1        CAST                                          6  ~4      !0
          2        ASSIGN                                                   !1, ~4
    6     3        INIT_FCALL                                               'str_split'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
    7     7        INIT_FCALL                                               'rsort'
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $10     
         17        ECHO                                                     $10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.97 ms | 942 KiB | 22 Q