3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{ "object": "list", "data": [ ], "has_more": false, "url": "/v1/customers" }', true)['data']; echo sizeof($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/auGmY
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%0A%22object%22%3A+%22list%22%2C%0A%22data%22%3A+%5B%0A%0A%5D%2C%0A%22has_more%22%3A+false%2C%0A%22url%22%3A+%22%2Fv1%2Fcustomers%22%0A%7D'
   10     2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $1      
          4        FETCH_DIM_R                                      ~2      $1, 'data'
    3     5        ASSIGN                                                   !0, ~2
   12     6        COUNT                                            ~4      !0
          7        ECHO                                                     ~4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1393 KiB | 15 Q