3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $var = 'Hello'; function hassle($str) { preg_replace('/[^[:alnum:]]/', '', $str); $chars = str_split($str); shuffle($chars); return implode('', $chars); } echo hassle($var); } catch (Exception $e) { }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
filename:       /in/9hkOK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $var, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'Hello'
    6     1        DECLARE_FUNCTION                                         'hassle'
   16     2        INIT_FCALL_BY_NAME                                       'hassle'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
          6      > JMP                                                      ->8
   17     7  E > > CATCH                                       last         'Exception'
   18     8    > > RETURN                                                   1

Function %00hassle%2Fin%2F9hkOK%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hkOK
function name:  hassle
number of ops:  19
compiled vars:  !0 = $str, !1 = $chars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5E%5B%3Aalnum%3A%5D%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !1, $3
   11    10        INIT_FCALL                                               'shuffle'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
   13    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $6      
         17      > RETURN                                                   $6
   14    18*     > RETURN                                                   null

End of function %00hassle%2Fin%2F9hkOK%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.45 ms | 1396 KiB | 21 Q