3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "levels": [ {"role_id":1, "access_level_id":3}, {"role_id":2, "access_level_id":1}, {"role_id":3, "access_level_id":2}], "category_id": 3 }'; $decoded = json_decode($json, true); var_dump($decoded);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GM5fR
function name:  (null)
number of ops:  10
compiled vars:  !0 = $json, !1 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++%22levels%22%3A+%5B%0A++%7B%22role_id%22%3A1%2C+%22access_level_id%22%3A3%7D%2C+%0A++%7B%22role_id%22%3A2%2C+%22access_level_id%22%3A1%7D%2C+%0A++%7B%22role_id%22%3A3%2C+%22access_level_id%22%3A2%7D%5D%2C+%0A++%22category_id%22%3A+3%0A%7D'
   11     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.24 ms | 1010 KiB | 15 Q