3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $jsonp = file_get_contents("http://www.google.no/dictionary/json?callback=a&sl=en&tl=en&q=" . 'love'); $json = json_decode(substr($jsonp, 2, strlen($jsonp)-12)); var_dump($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdSag
function name:  (null)
number of ops:  19
compiled vars:  !0 = $jsonp, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.google.no%2Fdictionary%2Fjson%3Fcallback%3Da%26sl%3Den%26tl%3Den%26q%3Dlove'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'json_decode'
          5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 2
          8        STRLEN                                           ~4      !0
          9        SUB                                              ~5      ~4, 12
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    6    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1394 KiB | 21 Q