3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stats_json = '{"id":"http:\/\/spin.loc\/articles\/123123\/","count":12}'; $stats_data = json_decode($stats_json); $stats = (!empty($stats->count)) ? $stats->count : 0; var_dump($stats);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3gZC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $stats_json, !1 = $stats_data, !2 = $stats
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22id%22%3A%22http%3A%5C%2F%5C%2Fspin.loc%5C%2Farticles%5C%2F123123%5C%2F%22%2C%22count%22%3A12%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ISSET_ISEMPTY_PROP_OBJ                           ~6      !2, 'count'
          6        BOOL_NOT                                         ~7      ~6
          7      > JMPZ                                                     ~7, ->11
          8    >   FETCH_OBJ_R                                      ~8      !2, 'count'
          9        QM_ASSIGN                                        ~9      ~8
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~9      0
         12    >   ASSIGN                                                   !2, ~9
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1395 KiB | 17 Q