3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $body = '[ { "key": "value" } ]'; var_dump(json_decode($body, false)); var_dump((object) json_decode($body, false ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7EZqZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%5B%0A++++%7B%0A++++++++%22key%22%3A+%22value%22%0A++++%7D%0A%5D'
   11     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <false>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   13     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 <false>
         12        DO_ICALL                                         $4      
         13        CAST                                          8  ~5      $4
         14        SEND_VAL                                                 ~5
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.68 ms | 1010 KiB | 15 Q