3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jobs = "{'te&nbsp;st':'testing&nbsp;'}"; $jobs = str_replace("&nbsp;", " ", $jobs); $jobs = json_decode($jobs,true); echo htmlspecialchars($jobs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/An8lO
function name:  (null)
number of ops:  17
compiled vars:  !0 = $jobs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%27te%26nbsp%3Bst%27%3A%27testing%26nbsp%3B%27%7D'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%26nbsp%3B'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    4     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        INIT_FCALL                                               'htmlspecialchars'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.82 ms | 1394 KiB | 19 Q