3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Row extends \ArrayObject { } class Piwik_DataTable_Row extends Row { public function unserialize($serialized) { $serialized = str_replace('O:19:"Piwik_DataTable_Row"', 'C:19:"Piwik_DataTable_Row"', $serialized); $unserialized = unserialize($serialize); $this->exchangeArray($unserialized); } } $x = unserialize('O:19:"Piwik_DataTable_Row":1:{s:1:"c";a:3:{i:0;a:11:{s:5:"label";s:9:"piwik.org";i:2;i:10509;i:3;i:31854;i:4;d:263;i:5;i:1736331;i:6;i:6887;i:10;a:2:{i:0;a:8:{i:1;i:120;i:3;i:60;i:2;d:48633.300000000003;i:4;d:81000;i:5;d:15930;i:6;d:3603.2999999999993;i:7;d:20580;i:8;i:390;}i:3;a:3:{i:1;i:48;i:3;i:48;i:2;d:0;}}i:8;i:168;i:9;d:48633.300000000003;i:11;i:10509;i:7;i:0;}i:1;a:0:{}i:3;i:1581;}}'); var_dump($x);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of Piwik_DataTable_Row::unserialize($serialized) should either be compatible with ArrayObject::unserialize(string $data): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/YgpDR on line 8 Fatal error: Uncaught UnexpectedValueException: Incomplete or ill-typed serialization data in /in/YgpDR:16 Stack trace: #0 [internal function]: ArrayObject->__unserialize(Array) #1 /in/YgpDR(16): unserialize('O:19:"Piwik_Dat...') #2 {main} thrown in /in/YgpDR on line 16
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.33 ms | 402 KiB | 8 Q