3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo phpversion(); echo "<br />"; $j = json_encode(array('tja'=>'ba')); $fishy = $j.'ff'; var_dump($fishy); $jtest = @json_decode($fishy, true); if($jtest !== null && is_array($jtest)){ var_dump('true'); pr($jtest); }else{ var_dump('false'); } die;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 32
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 24
filename:       /in/hG9cd
function name:  (null)
number of ops:  37
compiled vars:  !0 = $j, !1 = $fishy, !2 = $jtest
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $3      
          2        ECHO                                                     $3
    4     3        ECHO                                                     '%3Cbr+%2F%3E'
    5     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    6     8        CONCAT                                           ~6      !0, 'ff'
          9        ASSIGN                                                   !1, ~6
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    8    13        BEGIN_SILENCE                                    ~9      
         14        INIT_FCALL                                               'json_decode'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $10     
         18        END_SILENCE                                              ~9
         19        ASSIGN                                                   !2, $10
    9    20        TYPE_CHECK                                  1020  ~12     !2
         21      > JMPZ_EX                                          ~12     ~12, ->24
         22    >   TYPE_CHECK                                  128  ~13     !2
         23        BOOL                                             ~12     ~13
         24    > > JMPZ                                                     ~12, ->32
   10    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAL                                                 'true'
         27        DO_ICALL                                                 
   11    28        INIT_FCALL_BY_NAME                                       'pr'
         29        SEND_VAR_EX                                              !2
         30        DO_FCALL                                      0          
         31      > JMP                                                      ->35
   13    32    >   INIT_FCALL                                               'var_dump'
         33        SEND_VAL                                                 'false'
         34        DO_ICALL                                                 
   15    35    > > EXIT                                                     
         36*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.5 ms | 1396 KiB | 21 Q