3v4l.org

run code in 500+ PHP versions simultaneously
<?php $payload = 'O:13:"ArrayIterator":3:{' . 's:1:"0";i:0;' . 's:1:"1";a:0:{}' . 's:1:"2";a:2:{i:0;i:0;i:1;i:0;}' . '}'; $obj = unserialize($payload); // Successful unserialization $clone = clone $obj; // Segmentation fault
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SVARn
function name:  (null)
number of ops:  8
compiled vars:  !0 = $payload, !1 = $obj, !2 = $clone
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'O%3A13%3A%22ArrayIterator%22%3A3%3A%7Bs%3A1%3A%220%22%3Bi%3A0%3Bs%3A1%3A%221%22%3Ba%3A0%3A%7B%7Ds%3A1%3A%222%22%3Ba%3A2%3A%7Bi%3A0%3Bi%3A0%3Bi%3A1%3Bi%3A0%3B%7D%7D'
    9     1        INIT_FCALL                                                   'unserialize'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !1, $4
   10     5        CLONE                                                ~6      !1
          6        ASSIGN                                                       !2, ~6
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
115.74 ms | 484 KiB | 10 Q