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"}} '; $audiostring = file_get_contents($audiourl); $json_a = json_decode($audiostring, true); echo $json_a['numRecordings'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Fv6H
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $audiostring, !2 = $audiourl, !3 = $json_a
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                                               'file_get_contents'
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !3, $7
    8    10        FETCH_DIM_R                                      ~9      !3, 'numRecordings'
         11        ECHO                                                     ~9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.57 ms | 1386 KiB | 17 Q