3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('["two"]')); var_dump((array)json_decode("['one':'two']")); var_dump(json_decode('')); var_dump((array)json_decode(''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iOaS0
function name:  (null)
number of ops:  27
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'json_decode'
          2        SEND_VAL                                                 '%5B%22two%22%5D'
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'json_decode'
          8        SEND_VAL                                                 '%5B%27one%27%3A%27two%27%5D'
          9        DO_ICALL                                         $2      
         10        CAST                                          7  ~3      $2
         11        SEND_VAL                                                 ~3
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'json_decode'
         15        SEND_VAL                                                 ''
         16        DO_ICALL                                         $5      
         17        SEND_VAR                                                 $5
         18        DO_ICALL                                                 
    6    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'json_decode'
         21        SEND_VAL                                                 ''
         22        DO_ICALL                                         $7      
         23        CAST                                          7  ~8      $7
         24        SEND_VAL                                                 ~8
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.11 ms | 1395 KiB | 17 Q