3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[{"subscription_id": "1","object": "user","object_id": "1234","changed_aspect": "media","time": 1297286541},{"subscription_id": "2","object": "tag","object_id": "nofilter","changed_aspect": "media","time": 1297286541},]'; $arr = array(); $arr = json_decode($string); json_last_error(); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9FIvn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22subscription_id%22%3A+%221%22%2C%22object%22%3A+%22user%22%2C%22object_id%22%3A+%221234%22%2C%22changed_aspect%22%3A+%22media%22%2C%22time%22%3A+1297286541%7D%2C%7B%22subscription_id%22%3A+%222%22%2C%22object%22%3A+%22tag%22%2C%22object_id%22%3A+%22nofilter%22%2C%22changed_aspect%22%3A+%22media%22%2C%22time%22%3A+1297286541%7D%2C%5D'
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    8     6        INIT_FCALL                                               'json_last_error'
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.38 ms | 1394 KiB | 19 Q