3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1388 KiB | 21 Q