3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'a:4:{i:0;O:8:"stdClass":2:{s:3:"aaa";a:2:{i:0;s:4:"test";i:1;i:2;}s:3:"aaa";i:3;}i:2;i:4;i:3;i:5;s:3:"ccc";R:4;}'; $x = unserialize($data); //var_dump($x); var_dump(in_array($x['ccc'], array('test'))); if(is_string($x['ccc']) && in_array($x['ccc'], array('test'))) { $a = 'hahahaha'; $b = 'b'; var_dump($x['ccc']); echo 'haha'; } else { echo 'fuck'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/u6nIn
function name:  (null)
number of ops:  27
compiled vars:  !0 = $data, !1 = $x, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%3A4%3A%7Bi%3A0%3BO%3A8%3A%22stdClass%22%3A2%3A%7Bs%3A3%3A%22aaa%22%3Ba%3A2%3A%7Bi%3A0%3Bs%3A4%3A%22test%22%3Bi%3A1%3Bi%3A2%3B%7Ds%3A3%3A%22aaa%22%3Bi%3A3%3B%7Di%3A2%3Bi%3A4%3Bi%3A3%3Bi%3A5%3Bs%3A3%3A%22ccc%22%3BR%3A4%3B%7D'
    4     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    7     5        INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_R                                      ~7      !1, 'ccc'
          7        IN_ARRAY                                         ~8      ~7, <array>
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                                 
    9    10        FETCH_DIM_R                                      ~10     !1, 'ccc'
         11        TYPE_CHECK                                   64  ~11     ~10
         12      > JMPZ_EX                                          ~11     ~11, ->16
         13    >   FETCH_DIM_R                                      ~12     !1, 'ccc'
         14        IN_ARRAY                                         ~13     ~12, <array>
         15        BOOL                                             ~11     ~13
         16    > > JMPZ                                                     ~11, ->25
   10    17    >   ASSIGN                                                   !2, 'hahahaha'
   11    18        ASSIGN                                                   !3, 'b'
   12    19        INIT_FCALL                                               'var_dump'
         20        FETCH_DIM_R                                      ~16     !1, 'ccc'
         21        SEND_VAL                                                 ~16
         22        DO_ICALL                                                 
   13    23        ECHO                                                     'haha'
         24      > JMP                                                      ->26
   15    25    >   ECHO                                                     'fuck'
   16    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.64 ms | 1401 KiB | 17 Q