3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ret_str = "online shell "; echo strtolower(preg_replace("/[^A-Za-z0-9_]/", '', str_replace(' ', '_', trim($ret_str)))); $ret_str = preg_replace("/[^A-Za-z0-9_]/", '', $ret_str); $ret_str = preg_replace("/[_]+/", '_', $ret_str); echo "\n".$ret_str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OvMv3
function name:  (null)
number of ops:  33
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                                               'strtolower'
          2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9_%5D%2F'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 '+'
          7        SEND_VAL                                                 '_'
          8        INIT_FCALL                                               'trim'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
    4    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%2F%5B%5EA-Za-z0-9_%5D%2F'
         20        SEND_VAL                                                 ''
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $6      
         23        ASSIGN                                                   !0, $6
    5    24        INIT_FCALL                                               'preg_replace'
         25        SEND_VAL                                                 '%2F%5B_%5D%2B%2F'
         26        SEND_VAL                                                 '_'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $8      
         29        ASSIGN                                                   !0, $8
    7    30        CONCAT                                           ~10     '%0A', !0
         31        ECHO                                                     ~10
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.31 ms | 1396 KiB | 21 Q