3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = '{"question":"This is \"some quotes\" and also \'single quotes\'","options":["Here is an emoji: ud83dude06","With some slashes/too and back\\\\as well"]}'; var_dump($json); var_dump(json_decode($json));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sSn6m
function name:  (null)
number of ops:  11
compiled vars:  !0 = $json
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%22question%22%3A%22This+is+%5C%22some+quotes%5C%22+and+also+%27single+quotes%27%22%2C%22options%22%3A%5B%22Here+is+an+emoji%3A+ud83dude06%22%2C%22With+some+slashes%2Ftoo+and+back%5C%5Cas+well%22%5D%7D'
    5     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    6     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'json_decode'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.44 ms | 2061 KiB | 15 Q