3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'Hello'; function hassle($str) { preg_replace('/[^[:alnum:]]/', '', $str); $chars = str_split($str); shuffle($chars); return implode('', $chars); } echo hassle($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pRGSd
function name:  (null)
number of ops:  6
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello'
   15     1        INIT_FCALL                                               'hassle'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function hassle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pRGSd
function name:  hassle
number of ops:  19
compiled vars:  !0 = $str, !1 = $chars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     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                                                 
    9     6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !1, $3
   10    10        INIT_FCALL                                               'shuffle'
         11        SEND_REF                                                 !1
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 ''
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $6      
         17      > RETURN                                                   $6
   13    18*     > RETURN                                                   null

End of function hassle

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.16 ms | 1398 KiB | 22 Q