3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ret_str = "online shell "; $ret_str = preg_replace("/[^A-Za-z0-9_]/", '', $ret_str); $ret_str = preg_replace("/[_]+/", '_', $ret_str); echo $ret_str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fqqk2
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ret_str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'online+shell+'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9_%5D%2F'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5B_%5D%2B%2F'
          9        SEND_VAL                                                 '_'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.09 ms | 1394 KiB | 15 Q