3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"nombre": "Gorka", "conocimientos": {"java":"algo", "go": "aprendiendo", "c": "alto", "python": "alto", "php":"master and commander"}}'; $objetoJson = json_decode($json); print_r($objetoJson); $arrayJson = json_decode($json, true); print_r($arrayJson);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KroQi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $json, !1 = $objetoJson, !2 = $arrayJson
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22nombre%22%3A+%22Gorka%22%2C+%22conocimientos%22%3A+%7B%22java%22%3A%22algo%22%2C+%22go%22%3A+%22aprendiendo%22%2C+%22c%22%3A+%22alto%22%2C+%22python%22%3A+%22alto%22%2C+%22php%22%3A%22master+and+commander%22%7D%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.97 ms | 1445 KiB | 15 Q