3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(unserialize('a:4:{i:0;O:20:"AppBundle\\Entity\\Box":18:{s:10:"' . "\0" . '*' . "\0" . 'address";s:13:"test@test.com";s:7:"' . "\0" . '*' . "\0" . 'user";s:4:"test";s:9:"' . "\0" . '*' . "\0" . 'domain";O:38:"Proxies\\__CG__\\AppBundle\\Entity\\Domain":10:{s:17:"__isInitialized__";b:1;s:7:"' . "\0" . '*' . "\0" . 'name";s:8:"test.com";s:10:"' . "\0" . '*' . "\0" . 'created";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-14 21:38:14.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:10:"' . "\0" . '*' . "\0" . 'updated";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-14 21:38:14.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:12:"' . "\0" . '*' . "\0" . 'domainBin";b:0;s:19:"' . "\0" . '*' . "\0" . 'domainBinAddress";N;s:10:"' . "\0" . '*' . "\0" . 'forward";b:0;s:16:"' . "\0" . '*' . "\0" . 'forwardDomain";N;s:14:"' . "\0" . '*' . "\0" . 'referenceId";N;s:8:"' . "\0" . '*' . "\0" . 'boxes";O:33:"Doctrine\\ORM\\PersistentCollection":2:{s:13:"' . "\0" . '*' . "\0" . 'collection";O:43:"Doctrine\\Common\\Collections\\ArrayCollection":1:{s:53:"' . "\0" . 'Doctrine\\Common\\Collections\\ArrayCollection' . "\0" . 'elements";a:1:{i:0;O:20:"AppBundle\\Entity\\Box":18:{s:10:"' . "\0" . '*' . "\0" . 'address";s:13:"test@test.com";s:7:"' . "\0" . '*' . "\0" . 'user";s:4:"test";s:9:"' . "\0" . '*' . "\0" . 'domain";r:6;s:11:"' . "\0" . '*' . "\0" . 'password";s:120:"{SHA512-CRYPT}$6$acvyLX2N9lsg1F.K$Bop/wS7UxWIH/VzR0uGhopOBSVvwlAdsdxzqXgwluo4VmylnzgGQ5/UhdHZ/1U0UyID8POk2/vGy2h4Q4pGSQ1";s:20:"' . "\0" . '*' . "\0" . 'passwordPlaintext";s:0:"";s:7:"' . "\0" . '*' . "\0" . 'home";s:27:"/data/domains/test.com/test";s:6:"' . "\0" . '*' . "\0" . 'uid";i:8;s:6:"' . "\0" . '*' . "\0" . 'gid";i:8;s:7:"' . "\0" . '*' . "\0" . 'name";s:0:"";s:11:"' . "\0" . '*' . "\0" . 'disabled";b:0;s:14:"' . "\0" . '*' . "\0" . 'domainAdmin";b:0;s:13:"' . "\0" . '*' . "\0" . 'superAdmin";b:1;s:21:"' . "\0" . '*' . "\0" . 'strictFromDisabled";b:0;s:14:"' . "\0" . '*' . "\0" . 'referenceId";N;s:10:"' . "\0" . '*' . "\0" . 'created";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-14 21:38:33.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:10:"' . "\0" . '*' . "\0" . 'updated";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-14 21:39:41.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:3:"UTC";}s:15:"' . "\0" . '*' . "\0" . 'redirectOnly";b:0;s:13:"' . "\0" . '*' . "\0" . 'redirectTo";a:0:{}}}}s:14:"' . "\0" . '*' . "\0" . 'initialized";b:1;}}s:11:"' . "\0" . '*' . "\0" . 'password";s:120:"{SHA512-CRYPT}$6$acvyLX2N9lsg1F.K$Bop/wS7UxWIH/VzR0uGhopOBSVvwlAdsdxzqXgwluo4VmylnzgGQ5/UhdHZ/1U0UyID8POk2/vGy2h4Q4pGSQ1";s:20:"' . "\0" . '*' . "\0" . 'passwordPlaintext";s:0:"";s:7:"' . "\0" . '*' . "\0" . 'home";s:27:"/data/domains/test.com/test";s:6:"' . "\0" . '*' . "\0" . 'uid";i:8;s:6:"' . "\0" . '*' . "\0" . 'gid";i:8;s:7:"' . "\0" . '*' . "\0" . 'name";s:0:"";s:11:"' . "\0" . '*' . "\0" . 'disabled";b:0;s:14:"' . "\0" . '*' . "\0" . 'domainAdmin";b:0;s:13:"' . "\0" . '*' . "\0" . 'superAdmin";b:1;s:21:"' . "\0" . '*' . "\0" . 'strictFromDisabled";b:0;s:14:"' . "\0" . '*' . "\0" . 'referenceId";N;s:10:"' . "\0" . '*' . "\0" . 'created";r:40;s:10:"' . "\0" . '*' . "\0" . 'updated";r:44;s:15:"' . "\0" . '*' . "\0" . 'redirectOnly";b:0;s:13:"' . "\0" . '*' . "\0" . 'redirectTo";a:0:{}}i:1;b:1;i:2;a:2:{i:0;O:41:"Symfony\\Component\\Security\\Core\\Role\\Role":1:{s:47:"' . "\0" . 'Symfony\\Component\\Security\\Core\\Role\\Role' . "\0" . 'role";s:9:"ROLE_USER";}i:1;O:41:"Symfony\\Component\\Security\\Core\\Role\\Role":1:{s:47:"' . "\0" . 'Symfony\\Component\\Security\\Core\\Role\\Role' . "\0" . 'role";s:16:"ROLE_SUPER_ADMIN";}}i:3;a:0:{}}'));
Output for 8.3.0 - 8.3.4, 8.3.6
Warning: unserialize(): Error at offset 938 of 2517 bytes in /in/gTumn on line 3 bool(false)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: unserialize(): Error at offset 938 of 2517 bytes in /in/gTumn on line 3 bool(false)
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
Notice: unserialize(): Error at offset 938 of 2517 bytes in /in/gTumn on line 3 bool(false)
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34
array(4) { [0]=> object(__PHP_Incomplete_Class)#1 (19) { ["__PHP_Incomplete_Class_Name"]=> string(20) "AppBundle\Entity\Box" ["address":protected]=> string(13) "test@test.com" ["user":protected]=> string(4) "test" ["domain":protected]=> object(__PHP_Incomplete_Class)#2 (11) { ["__PHP_Incomplete_Class_Name"]=> string(38) "Proxies\__CG__\AppBundle\Entity\Domain" ["__isInitialized__"]=> bool(true) ["name":protected]=> string(8) "test.com" ["created":protected]=> object(DateTime)#3 (3) { ["date"]=> string(26) "2018-12-14 21:38:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } ["updated":protected]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2018-12-14 21:38:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } ["domainBin":protected]=> bool(false) ["domainBinAddress":protected]=> NULL ["forward":protected]=> bool(false) ["forwardDomain":protected]=> NULL ["referenceId":protected]=> NULL ["boxes":protected]=> object(__PHP_Incomplete_Class)#5 (3) { ["__PHP_Incomplete_Class_Name"]=> string(33) "Doctrine\ORM\PersistentCollection" ["collection":protected]=> object(__PHP_Incomplete_Class)#6 (2) { ["__PHP_Incomplete_Class_Name"]=> string(43) "Doctrine\Common\Collections\ArrayCollection" ["elements":"Doctrine\Common\Collections\ArrayCollection":private]=> array(1) { [0]=> object(__PHP_Incomplete_Class)#7 (19) { ["__PHP_Incomplete_Class_Name"]=> string(20) "AppBundle\Entity\Box" ["address":protected]=> string(13) "test@test.com" ["user":protected]=> string(4) "test" ["domain":protected]=> bool(true) ["password":protected]=> string(120) "{SHA512-CRYPT}$6$acvyLX2N9lsg1F.K$Bop/wS7UxWIH/VzR0uGhopOBSVvwlAdsdxzqXgwluo4VmylnzgGQ5/UhdHZ/1U0UyID8POk2/vGy2h4Q4pGSQ1" ["passwordPlaintext":protected]=> string(0) "" ["home":protected]=> string(27) "/data/domains/test.com/test" ["uid":protected]=> int(8) ["gid":protected]=> int(8) ["name":protected]=> string(0) "" ["disabled":protected]=> bool(false) ["domainAdmin":protected]=> bool(false) ["superAdmin":protected]=> bool(true) ["strictFromDisabled":protected]=> bool(false) ["referenceId":protected]=> NULL ["created":protected]=> object(DateTime)#8 (3) { ["date"]=> string(26) "2018-12-14 21:38:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } ["updated":protected]=> object(DateTime)#9 (3) { ["date"]=> string(26) "2018-12-14 21:39:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } ["redirectOnly":protected]=> bool(false) ["redirectTo":protected]=> array(0) { } } } } ["initialized":protected]=> bool(true) } } ["password":protected]=> string(120) "{SHA512-CRYPT}$6$acvyLX2N9lsg1F.K$Bop/wS7UxWIH/VzR0uGhopOBSVvwlAdsdxzqXgwluo4VmylnzgGQ5/UhdHZ/1U0UyID8POk2/vGy2h4Q4pGSQ1" ["passwordPlaintext":protected]=> string(0) "" ["home":protected]=> string(27) "/data/domains/test.com/test" ["uid":protected]=> int(8) ["gid":protected]=> int(8) ["name":protected]=> string(0) "" ["disabled":protected]=> bool(false) ["domainAdmin":protected]=> bool(false) ["superAdmin":protected]=> bool(true) ["strictFromDisabled":protected]=> bool(false) ["referenceId":protected]=> NULL ["created":protected]=> string(26) "2018-12-14 21:38:33.000000" ["updated":protected]=> string(26) "2018-12-14 21:39:41.000000" ["redirectOnly":protected]=> bool(false) ["redirectTo":protected]=> array(0) { } } [1]=> bool(true) [2]=> array(2) { [0]=> object(__PHP_Incomplete_Class)#10 (2) { ["__PHP_Incomplete_Class_Name"]=> string(41) "Symfony\Component\Security\Core\Role\Role" ["role":"Symfony\Component\Security\Core\Role\Role":private]=> string(9) "ROLE_USER" } [1]=> object(__PHP_Incomplete_Class)#11 (2) { ["__PHP_Incomplete_Class_Name"]=> string(41) "Symfony\Component\Security\Core\Role\Role" ["role":"Symfony\Component\Security\Core\Role\Role":private]=> string(16) "ROLE_SUPER_ADMIN" } } [3]=> array(0) { } }

preferences:
243.95 ms | 414 KiB | 300 Q