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
Output for 8.2.31 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
Deprecated: Creation of dynamic property ArrayIterator::$0 is deprecated in /in/SVARn on line 9 Deprecated: Creation of dynamic property ArrayIterator::$1 is deprecated in /in/SVARn on line 9
Process exited with code 139.

preferences:
15.5 ms | 1164 KiB | 6 Q