3v4l.org

run code in 300+ PHP versions simultaneously
<?php // the name and value must be enclosed in double quotes // single quotes are not valid $bad_json = "[ 'bar', 'baz' ]"; json_decode($bad_json); // null
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UTCXP
function name:  (null)
number of ops:  5
compiled vars:  !0 = $bad_json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%5B+%27bar%27%2C+%27baz%27+%5D'
    6     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.95 ms | 1393 KiB | 15 Q