3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($string) { $string = str_replace(' ', '', $string); return preg_replace('/^A-Za-z0-9/', '', string); } echo foo('Lee%-&*d#');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/28gGv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 'Lee%25-%26%2Ad%23'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/28gGv
function name:  foo
number of ops:  14
compiled vars:  !0 = $string, !1 = $string 
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL_BY_NAME                                       '%C2%A0str_replace'
          2        SEND_VAL_EX                                              '+'
          3        SEND_VAL_EX                                              ''
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $2      
          6        ASSIGN                                                   !1, $2
    5     7        INIT_FCALL_BY_NAME                                       'return%C2%A0preg_replace'
          8        SEND_VAL_EX                                              '%2F%5EA-Za-z0-9%2F'
          9        SEND_VAL_EX                                              ''
         10        FETCH_CONSTANT                                   ~4      '%C2%A0string'
         11        SEND_VAL_EX                                              ~4
         12        DO_FCALL                                      0          
    7    13      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.88 ms | 1397 KiB | 14 Q