3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' {"numRecordings":"87","numSpecies":"1","page":1,"numPages":1,"recordings":[{"id":"176356","gen":"Picoides","sp":"pubescens","ssp":"","en":"Downy Woodpecker","rec":"Jorge de Leon Cardozo","cnt":"United States","loc":"STORRS MANSFIELD, Tolland, Connecticut","lat":"41.8349","lng":"-72.1974","type":"drumming","file":"http:\/\/www.xeno-canto.org\/176356\/download","lic":"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/","url":"http:\/\/www.xeno-canto.org\/176356"}} '; $json = json_decode($str); $distance = $json->numRecordings[0]->value; var_dump($distance);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WplAc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $json, !2 = $distance
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++++%7B%22numRecordings%22%3A%2287%22%2C%22numSpecies%22%3A%221%22%2C%22page%22%3A1%2C%22numPages%22%3A1%2C%22recordings%22%3A%5B%7B%22id%22%3A%22176356%22%2C%22gen%22%3A%22Picoides%22%2C%22sp%22%3A%22pubescens%22%2C%22ssp%22%3A%22%22%2C%22en%22%3A%22Downy+Woodpecker%22%2C%22rec%22%3A%22Jorge+de+Leon+Cardozo%22%2C%22cnt%22%3A%22United+States%22%2C%22loc%22%3A%22STORRS+MANSFIELD%2C+Tolland%2C+Connecticut%22%2C%22lat%22%3A%2241.8349%22%2C%22lng%22%3A%22-72.1974%22%2C%22type%22%3A%22drumming%22%2C%22file%22%3A%22http%3A%5C%2F%5C%2Fwww.xeno-canto.org%5C%2F176356%5C%2Fdownload%22%2C%22lic%22%3A%22http%3A%5C%2F%5C%2Fcreativecommons.org%5C%2Flicenses%5C%2Fby-nc-sa%5C%2F4.0%5C%2F%22%2C%22url%22%3A%22http%3A%5C%2F%5C%2Fwww.xeno-canto.org%5C%2F176356%22%7D%7D%0A'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        FETCH_OBJ_R                                      ~6      !1, 'numRecordings'
          6        FETCH_DIM_R                                      ~7      ~6, 0
          7        FETCH_OBJ_R                                      ~8      ~7, 'value'
          8        ASSIGN                                                   !2, ~8
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.15 ms | 1395 KiB | 17 Q