3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<< JSON { "key1": "value1", "key2": "value2", "key3": "value3", "key4": "value4" } JSON; echo array_values(json_decode($input, true))[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jgXlI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A%22key1%22%3A+%22value1%22%2C+%0A%22key2%22%3A+%22value2%22%2C+%0A%22key3%22%3A+%22value3%22%2C+%0A%22key4%22%3A+%22value4%22+%0A%7D'
   12     1        INIT_FCALL                                               'array_values'
          2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        FETCH_DIM_R                                      ~4      $3, 0
          9        ECHO                                                     ~4
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157 ms | 1394 KiB | 17 Q