3v4l.org

run code in 300+ PHP versions simultaneously
<?php class uWU{ var $nxt=array(); function __wakeup(){ $this->nxt=array(); } } $x=unserialize('a:2:{i:0;O:3:"uWU":1:{s:3:"nxt";a:1:{i:0;s:1:"x";}}i:1;R:4;}'); $a=str_repeat('a',10); var_dump($x); ?>
Output for 5.4.39 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
array(2) { [0]=> object(uWU)#1 (1) { ["nxt"]=> array(0) { } } [1]=> string(1) "x" }
Output for 5.4.1 - 5.4.38
array(2) { [0]=> object(uWU)#1 (1) { ["nxt"]=> array(0) { } } [1]=> &string(1) "" }

preferences:
178.13 ms | 401 KiB | 221 Q