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_replace('~\x{00a0}~','',$string); return empty($string); } var_dump(string('Every thing is awesome'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wp04G
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'string'
          2        SEND_VAL                                                 'Every+thing+is+awesome'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function string:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wp04G
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                                               'preg_replace'
         18        SEND_VAL                                                 '%7E%5Cx%7B00a0%7D%7E'
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $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:
166.73 ms | 1399 KiB | 22 Q