3v4l.org

run code in 500+ PHP versions simultaneously
<?php $payload = 'C:11:"HashContext":0:{}'; $obj = @unserialize($payload); if ($obj) { serialize($obj); // SEGV here - NULL pointer dereference }
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 = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/NDvso
function name:  (null)
number of ops:  12
compiled vars:  !0 = $payload, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'C%3A11%3A%22HashContext%22%3A0%3A%7B%7D'
    5     1        BEGIN_SILENCE                                        ~3      
          2        INIT_FCALL                                                   'unserialize'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5        END_SILENCE                                                  ~3
          6        ASSIGN                                                       !1, $4
    6     7      > JMPZ                                                         !1, ->11
    7     8    >   INIT_FCALL                                                   'serialize'
          9        SEND_VAR                                                     !1
         10        DO_ICALL                                                     
    8    11    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.2 ms | 478 KiB | 9 Q