3v4l.org

run code in 300+ 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:  14
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        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%27'
          3        SEND_VAL                                                 '%22'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'print_r'
          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:
140.2 ms | 999 KiB | 16 Q