3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"locations":"Bangalore","requestor_department":"DC","requestor_department_count":"3"}{"locations":"Bangalore","requestor_department":"EBA","requestor_department_count":"1"}{"locations":"Chennai","requestor_department":"DC","requestor_department_count":"34"}{"locations":"Chennai","requestor_department":"EBA","requestor_department_count":"20"}{"locations":"Cochin","requestor_department":"DC","requestor_department_count":"4"}{"locations":"Cochin","requestor_department":"EBA","requestor_department_count":"2"}{"locations":"Hyderabad","requestor_department":"DC","requestor_department_count":"58"}{"locations":"Hyderabad","requestor_department":"EBA","requestor_department_count":"18"}{"locations":"Kolkata","requestor_department":"DC","requestor_department_count":"37"}{"locations":"Kolkata","requestor_department":"EBA","requestor_department_count":"8"}{"locations":"Pune","requestor_department":"DC","requestor_department_count":"26"}{"locations":"Pune","requestor_department":"EBA","requestor_department_count":"11"}'; $json2array = json_decode($json, true); print_r($json2array); /*$dcData = array(); $ebaData = array(); foreach($json2array as $row) { if($row['requestor_department'] == "DC") array_push($dcData, $row['requestor_department_count']); if($row['requestor_department'] == "EBA") array_push($ebaData, $row['requestor_department_count']); } echo json_encode($dcData); echo json_encode($ebaData); */ ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d6QiC
function name:  (null)
number of ops:  10
compiled vars:  !0 = $json, !1 = $json2array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22locations%22%3A%22Bangalore%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%223%22%7D%7B%22locations%22%3A%22Bangalore%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%221%22%7D%7B%22locations%22%3A%22Chennai%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%2234%22%7D%7B%22locations%22%3A%22Chennai%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%2220%22%7D%7B%22locations%22%3A%22Cochin%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%224%22%7D%7B%22locations%22%3A%22Cochin%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%222%22%7D%7B%22locations%22%3A%22Hyderabad%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%2258%22%7D%7B%22locations%22%3A%22Hyderabad%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%2218%22%7D%7B%22locations%22%3A%22Kolkata%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%2237%22%7D%7B%22locations%22%3A%22Kolkata%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%228%22%7D%7B%22locations%22%3A%22Pune%22%2C%22requestor_department%22%3A%22DC%22%2C%22requestor_department_count%22%3A%2226%22%7D%7B%22locations%22%3A%22Pune%22%2C%22requestor_department%22%3A%22EBA%22%2C%22requestor_department_count%22%3A%2211%22%7D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   17     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.69 ms | 1395 KiB | 17 Q