3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reply_v = json_decode('{"ok":true,"image":"614410023999338.jpg"}', true); if($reply_v['ok'] != 1 || $reply_v['image'] != "614410023999338.jpg") { throw new Exception("Image upload failed: ".$reply); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/JoF29
function name:  (null)
number of ops:  18
compiled vars:  !0 = $reply_v, !1 = $reply
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22ok%22%3Atrue%2C%22image%22%3A%22614410023999338.jpg%22%7D'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        FETCH_DIM_R                                      ~4      !0, 'ok'
          6        IS_NOT_EQUAL                                     ~5      ~4, 1
          7      > JMPNZ_EX                                         ~5      ~5, ->11
          8    >   FETCH_DIM_R                                      ~6      !0, 'image'
          9        IS_NOT_EQUAL                                     ~7      ~6, '614410023999338.jpg'
         10        BOOL                                             ~5      ~7
         11    > > JMPZ                                                     ~5, ->17
    4    12    >   NEW                                              $8      'Exception'
         13        CONCAT                                           ~9      'Image+upload+failed%3A+', !1
         14        SEND_VAL_EX                                              ~9
         15        DO_FCALL                                      0          
         16      > THROW                                         0          $8
    5    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1386 KiB | 15 Q