3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "['text', 'text', 100, ['text', false], false, ['text', 200], 'text']"; $json = str_replace("'", '"', $str); print_r(json_decode($json));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GoVR4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $json
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5B%27text%27%2C+%27text%27%2C+100%2C+%5B%27text%27%2C+false%5D%2C+false%2C+%5B%27text%27%2C+200%5D%2C+%27text%27%5D'
    4     1        FRAMELESS_ICALL_3                str_replace         ~3      '%27', '%22'
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !1, ~3
    5     4        INIT_FCALL                                                   'print_r'
          5        INIT_FCALL                                                   'json_decode'
          6        SEND_VAR                                                     !1
          7        DO_ICALL                                             $5      
          8        SEND_VAR                                                     $5
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.39 ms | 2162 KiB | 15 Q