3v4l.org

run code in 300+ PHP versions simultaneously
<?php function string($string) { $string = strip_tags($string); $string = str_replace(' ','', $string); $string = preg_replace('/\s+/','',$string); $string = preg_repalce('~\x{00a0}~','',$string); return empty($string); } echo string('Every thing is awesome');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnZSD
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'string'
          1        SEND_VAL                                                 'Every+thing+is+awesome'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnZSD
function name:  string
number of ops:  26
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'strip_tags'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 '+'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    5    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $5      
         16        ASSIGN                                                   !0, $5
    6    17        INIT_FCALL_BY_NAME                                       'preg_repalce'
         18        SEND_VAL_EX                                              '%7E%5Cx%7B00a0%7D%7E'
         19        SEND_VAL_EX                                              ''
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $7      
         22        ASSIGN                                                   !0, $7
    7    23        ISSET_ISEMPTY_CV                                 ~9      !0
         24      > RETURN                                                   ~9
    8    25*     > RETURN                                                   null

End of function string

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.82 ms | 1399 KiB | 20 Q