3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ser = 'a:5:{s:5:"width";i:559;s:6:"height";i:830;s:4:"file";s:19:"2017/07/frans-1.png";s:5:"sizes";a:3:{s:9:"thumbnail";a:4:{s:4:"file";s:19:"frans-1-150x150.png";s:5:"width";i:150;s:6:"height";i:150;s:9:"mime-type";s:9:"image/png";}s:6:"medium";a:4:{s:4:"file";s:19:"frans-1-202x300.png";s:5:"width";i:202;s:6:"height";i:300;s:9:"mime-type";s:9:"image/png";}s:14:"post-thumbnail";a:4:{s:4:"file";s:19:"frans-1-559x510.png";s:5:"width";i:559;s:6:"height";i:510;s:9:"mime-type";s:9:"image/png";}}s:10:"image_meta";a:12:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";s:11:"orientation";s:1:"0";s:8:"keywords";a:0:{}}}'; var_dump(unserialize($ser));
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.11
array(5) { ["width"]=> int(559) ["height"]=> int(830) ["file"]=> string(19) "2017/07/frans-1.png" ["sizes"]=> array(3) { ["thumbnail"]=> array(4) { ["file"]=> string(19) "frans-1-150x150.png" ["width"]=> int(150) ["height"]=> int(150) ["mime-type"]=> string(9) "image/png" } ["medium"]=> array(4) { ["file"]=> string(19) "frans-1-202x300.png" ["width"]=> int(202) ["height"]=> int(300) ["mime-type"]=> string(9) "image/png" } ["post-thumbnail"]=> array(4) { ["file"]=> string(19) "frans-1-559x510.png" ["width"]=> int(559) ["height"]=> int(510) ["mime-type"]=> string(9) "image/png" } } ["image_meta"]=> array(12) { ["aperture"]=> string(1) "0" ["credit"]=> string(0) "" ["camera"]=> string(0) "" ["caption"]=> string(0) "" ["created_timestamp"]=> string(1) "0" ["copyright"]=> string(0) "" ["focal_length"]=> string(1) "0" ["iso"]=> string(1) "0" ["shutter_speed"]=> string(1) "0" ["title"]=> string(0) "" ["orientation"]=> string(1) "0" ["keywords"]=> array(0) { } } }