3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_replace('/^\s(.*)\s$/u', '', preg_replace('/(\s)\s+/u', '$1', html_entity_decode('&nbsp;test&nbsp;', ENT_QUOTES, 'utf-8'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b87ZX
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5E%5Cs%28.%2A%29%5Cs%24%2Fu'
          3        SEND_VAL                                                 ''
          4        INIT_FCALL                                               'preg_replace'
          5        SEND_VAL                                                 '%2F%28%5Cs%29%5Cs%2B%2Fu'
          6        SEND_VAL                                                 '%241'
          7        INIT_FCALL                                               'html_entity_decode'
          8        SEND_VAL                                                 '%26nbsp%3Btest%26nbsp%3B'
          9        SEND_VAL                                                 3
         10        SEND_VAL                                                 'utf-8'
         11        DO_ICALL                                         $0      
         12        SEND_VAR                                                 $0
         13        DO_ICALL                                         $1      
         14        SEND_VAR                                                 $1
         15        DO_ICALL                                         $2      
         16        SEND_VAR                                                 $2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.64 ms | 1394 KiB | 19 Q