3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Parameter1":"<style> #label-9 { display: block; text-align: left; color: #fff; } </style>", "HistoryPosition":"1" }'; // remove the newlines and replace them with the literal JS newline $clean = str_replace(["\r", "\n"], ['', ''], $json); var_dump(json_decode($clean));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X6KgM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json, !1 = $clean
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B+%0A++++++%22Parameter1%22%3A%22%3Cstyle%3E%0A++++++++++++++++++++++%23label-9+%7B%0A++++++++++++++++++++++display%3A+block%3B%0A++++++++++++++++++++++text-align%3A+left%3B%0A++++++++++++++++++++++color%3A+%23fff%3B%0A++++++++++++++++++++++%7D%0A++++++++++++++++++++%3C%2Fstyle%3E%22%2C+%0A++++++%22HistoryPosition%22%3A%221%22%0A++++%7D'
   14     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
   15     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
333.92 ms | 1011 KiB | 16 Q