3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = json_decode("compensation\u00a0"); var_dump($str); $new_str = str_replace("&nbsp;", '', $str); var_dump($new_str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/00Qvu
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $new_str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 'compensation%5Cu00a0'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'str_replace'
          8        SEND_VAL                                                 '%26nbsp%3B'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.2 ms | 1398 KiB | 19 Q