3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); $test = '[{"foo":"bar"},{"foo":"baz"},{"foo":"bal"}]'; $data = json_decode($test, flags: JSON_OBJECT_AS_ARRAY); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/noqH9
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test, !1 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, '%5B%7B%22foo%22%3A%22bar%22%7D%2C%7B%22foo%22%3A%22baz%22%7D%2C%7B%22foo%22%3A%22bal%22%7D%5D'
    5     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     1
          4        CHECK_UNDEF_ARGS                                             
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !1, $3
    6     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.35 ms | 477 KiB | 9 Q