3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://m.tgpt.ca/json_mobile_data.php"; $content = file_get_contents($url); $data = json_decode($content, TRUE); print_r($data); $key = array_search('Mississauga Gas Prices', $data['gasprices']); echo $key; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R5J8s
function name:  (null)
number of ops:  21
compiled vars:  !0 = $url, !1 = $content, !2 = $data, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fm.tgpt.ca%2Fjson_mobile_data.php'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'array_search'
         14        SEND_VAL                                                 'Mississauga+Gas+Prices'
         15        FETCH_DIM_R                                      ~10     !2, 'gasprices'
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !3, $11
    9    19        ECHO                                                     !3
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.27 ms | 1395 KiB | 21 Q