3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'a:3:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";r:2;}i:1;O:9:"exception":1:{s:17:"'."\0".'Exception'."\0".'string";a:1:{i:0;r:4;}}}'; $x = unserialize($x); for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump($x);
based on m4vnC
Output for 5.6.25 - 5.6.28, 7.0.10 - 7.2.0
array(2) { [0]=> int(1) [1]=> object(Exception)#2 (6) { ["message":protected]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/V4JCV" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/V4JCV" ["line"]=> int(4) ["function"]=> string(11) "unserialize" ["args"]=> array(1) { [0]=> string(130) "a:3:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"Exceptionstring";r:2;}i:1;O:9:"exception":1:{s:17:"Exceptionstring";a:1:{i:0;r:4;}}}" } } } ["previous":"Exception":private]=> NULL } }
Output for 5.4.44 - 5.4.45, 5.5.28 - 5.5.38, 5.6.12 - 5.6.24, 7.0.0 - 7.0.9
array(2) { [0]=> int(1) [1]=> object(Exception)#2 (5) { ["message":protected]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/V4JCV" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/V4JCV" ["line"]=> int(4) ["function"]=> string(11) "unserialize" ["args"]=> array(1) { [0]=> string(130) "a:3:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"Exceptionstring";r:2;}i:1;O:9:"exception":1:{s:17:"Exceptionstring";a:1:{i:0;r:4;}}}" } } } } }
Output for 5.4.20 - 5.4.43, 5.5.4 - 5.5.27, 5.6.0 - 5.6.11
array(2) { [0]=> int(1) [1]=> object(Exception)#2 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> array(1) { [0]=> NULL } ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/V4JCV" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/V4JCV" ["line"]=> int(4) ["function"]=> string(11) "unserialize" ["args"]=> array(1) { [0]=> string(130) "a:3:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"Exceptionstring";r:2;}i:1;O:9:"exception":1:{s:17:"Exceptionstring";a:1:{i:0;r:4;}}}" } } } ["previous":"Exception":private]=> NULL } }
Output for 5.4.0 - 5.4.19, 5.5.1 - 5.5.3
array(2) { [0]=> int(1) [1]=> object(Exception)#2 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> array(1) { [0]=> UNKNOWN:0 } ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/V4JCV" ["line":protected]=> int(4) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/V4JCV" ["line"]=> int(4) ["function"]=> string(11) "unserialize" ["args"]=> array(1) { [0]=> string(130) "a:3:{i:0;i:1;i:1;O:9:"exception":1:{s:17:"Exceptionstring";r:2;}i:1;O:9:"exception":1:{s:17:"Exceptionstring";a:1:{i:0;r:4;}}}" } } } ["previous":"Exception":private]=> NULL } }
Process exited with code 139.
Output for 5.5.0
array(2) { [0]=> int(1) [1]=> object(Exception)#2 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> array(1) { [0]=> string(1676111176) "Y��c  �JY�JY`JY�VYPOn��@YY@YY�^Y�XY`�l�]Y�?�nPLYKYWY Q0��c�_T�w$iUd@�p��� QdoQ]z��@Tb� WY0UY@QYh��cQԠͧ��KYLY�RYh��cH {� HY���p� Q[nw|��dH$8` $9\nw|չo8Q��A��� PLYPMY�JY���cH �{ HY!`���up� Q[nw|��dH$8` $9\nw|չo8Q���� َ� �MY�NYLY��cH oV� HY�p� Q[nw|��dH$8` $9\nw|չo8Q`����NY�OYPMYh��cH zV� HY@�p� Q[nw|��dH$8` $9\nw|չo8QE���@PY@QY�NY���cH �V� HYP�p� Q[nw|��dH$8` $9\nw|չo8Q�^���QY�RY�OY`JY��cH �V� HY��p� Q[nw|��dH$8` $9\nw|չo8Q��f�0�w �RY�SY@QY�JYX��cH �V� HY��p� Q[nw|��dH$8` $9\nw|չo8Q�vR"�j� 0TY0UY�RY���cH �V� HY0�p� Q[nw|��dH$8` $9\nw|չo8Q��2�J��UY`JY�SY��cH �V� HY�xp� Q[nw|��dH$8` $9\nw|չo8��NY�SY�RY�OYLYPMY`JY0UYH �� HY�p� Q[nw|��dH$8` $9\nw|չo8Q� 2��pr (XY HY�dY�GY�\���c1�XY!!�0Y�*Yous!geQ [Y�^Y0^Y]Ya*�L��YY@ZY�^Y�YYmessageQ��c ti��T� HY1�XY!0�Yonstringa|� ����ZY [Y@YY0^Y�ZYstringQp��c �yEk]�� HY1a�=1�[Y0\Y@ZYh[YcodeQУ�c P�#�� HY11�\Ya�/p1�\Y]Y [Y]Yx\YfileQ ��cOq2$� HY1aM��1p]Y0^Y0\Y0\YX]YlineQp��c� �$� HY1A`XY�YY�ZY�[Y�\Y�]Y\Ya:�S�^Y�^Y]Y@ZYx^YtraceQ���c�@J#���[ HYa"e��0�w @_Y0^Y@YY(_YpreviousQ ��cq�]�da�T HYAY���c HY bY bY0uY�sYPOn���eY�eYwYPeY`�l�vY�?�npbYKYWY Q0��c�_T�w$iUd �p���� QdoQ��2�J�0tY0uYPrY��cQ��A��� pbYpcY���c�{�_Y! ���vp� Q��oP��@q ��c$8` $9\nw|չo8Q �v�j� �cYpjY bYmYإ�c\V��_Y�p� Q��oP��@q ��c$8` $9\nw|չo8Q^ymX5�`�dY�_Y0~YXY0��cA� { pZ \YQwY�iYiY`hYa*�L�fYPfY�iY�eYmessageQ��c ti��T� HYa|� ����fYgY�eYiY�fYstringQp��c �yEk]�� HYa�=1`gY�gYPfYwYHgYcodeQУ�c P�#�� HYa�/p1hY`hYgY`hY�gYfileQ ��cOq2$� HYaM��1�hYiY�gY�gY�hYlineQp��c� �$� HYa:�SpiY�iY`hYPfYXiYtraceQ���c�@J#���[ HYa"e��0�w jYwYiY�eYjYpreviousQ ��cq�]�da�T HYQԠͧ���jY�kYpcYqYh��cH {� HY���p� Q[nw|��dH$8` $9\nw|չo8Q���� َ� lYmYpjY��cH oV� HY�p� Q[nw|��dH$8` $9\nw|չo8Q`���`mY`nY�kYpcYh��cH zV� HY@�p� Q[nw|��dH$8` $9\nw|չo8QE����nY�oYmY���cH �V� HYP�p� Q[nw|��dH$8` $9\nw|չo8Q�^��pYqY`nY0uY��cH �V� HY��p� Q[nw|��dH$8` $9\nw|չo8Q��f�0�w PqYPrY�oYpjYX��cH �V� HY��p� Q[nw|��dH$8` $9\nw|չo8Q�vR"�j� �rY�aYqY���cH �V� HY0�p� Q[nw|��dH$8` $9\nw|չo8�mYPrYqY`nY bY�kY0uY�aYH �V� HY�xp� Q[nw|��dH$8` $9\nw|չo8Q]z��@Tb� �uY�aY�oYh��cH �� HY�p� Q[nw|��dH$8` $9\nw|չo81Q`XY�YY�ZY�[Y�\Y�]Y\Y�vYa��7��w `wY�iYgYHwYseverityQ����c *��2׈��_YA@��c@�@zY@zY�|Y�yYPOn��?�`�l��?�n�zY0��c�_T�w$iUd�p�lp�lp���� Q���Q@zY�{Y�|YQ��A��� �zY�{Y���c�{�wY$���p� Q���7��w�_Y��o�vY$8` $9\nw|չo8Q"�'1�{Y�|Y@zY���ci]��wY�`���p� Q���7��w�_Y��o�vY$8` $9\nw|չo8Qe�wx��0}Y�{Y��cn]��wY����p� Q���7��w�_Y��o�vY$8` $9\nw|չo8Q�� ^��H~Y�wY��Y�dY0��cA���c @�Y�Y@�Y��YPOn���?�`�l�?�n���$iUdPqq�lp�lp�XY ��� Q�[pQ@�Y�YP�Y`�Y�Y��YQn�l?��`�Y`�Y�Y ��cwY����~Y9Y`_��q� Qw|��dH Q$8` $9\nw|�չo8QU 8"S��Y��Y�Y���cwYP���~Y�7Y`_��q� Qw|��dH Q$8` $9\nw|�չo8Q������Y�Y`�Y@�Y(�cwY� {�~Y�3Y`_�Pq� Qw|��dH Q$8` $9\nw|�չo8QNy�|P�YP�Y��Y�Yx�cwYj��~Yp6Y`_��q� Qw|��dH Q$8` $9\nw|�չo8QD��1��Y��Y�Y��cwY5��~Y 5Y`_�� q� Qw|��dH Q$8` $9\nw|�չo8Q/EY1�Y�YP�Yب�cwY�B��~Y��� q� Qw|��dH Q$8` $9\nw|�չo8Q��S@�Y@�Y��Y(��cwY_��~Y`�� q� Qw|��dH Q$8` $9\nw|�չo8Q�����w ��Y�Y��Yx��cwY�{�~Y`_��q� Qw|��dH Q$8` $9\nw|�չo8Q,-��pr ��Y�~Y��Y0~Y�saЩ�ca�ӥ4*���@�Y��Y� R(�Ydate.timezoneqa{�?C�P�@�Qq�O���� �Y��Y�Y0�x��Ydate.default_latitudeqB{�{q@ �~Ě2?�Yp�Y��Y��Q؍Ydate.default_longitudeqX{�{qd&��*���YP�Y��Y��Ydate.sunset_zenithqo{�{ q�D5���_���Y�9\p�Y��Ydate.sunrise_zenithq�{�{ A��(��c���Y��YP�Yp�YPOn���?�`�l1�?�nH��pkQP������ipkQ�>��R�oQP�Y��Y`�Y�YQnʬ����Y�Y�Y���c�{0�Y�R��RP�����`X�������f$8` $9\nw|չo8QsQ�Zj� `�Y`�Y��YP�Yت�c�{0�Y@{�RP�����`X�������f$8` $9\nw|չo8QLf�.O�pr ��Y��Y�Y0��c{0�Y {�RP�����`X�������f$8` $9\nw|չo8Q�B��Ѫ �Y�Y`�Y���c�{0�Y{�RP�����`X�������f$8` $9\nw|չo8Q^�K1P�YP�Y��Y��Y��c�{0�Y�N��RP�����`X�������f$8` $9\nw|չo8Q�����w ��Y�Y�Yx��c�{0�Y�RP�����`X�������f$8` $9\nw|չo8Q�K[�����Y0�Y �Y��Y0��cA����c ���Y��YP�Y�YPOnf�?�`�l�� �Y�YP�Y��YnНY���fj��c��f�PeC ZY�`<��R�HOdQsQ�Zj� �Y�Y�YОYت�cQ��A��� НYОY���c�{�Y!�T�0�C�RHp1[n$8` $9\nw|չo8Q�����w �Y �Y��Y0�Yx��c�{�Y��Y�C�RHp1[n$8` $9\nw|չo8Qo��y]��� p�Yp�YОY�Y��c�{�Y��C�RHp1[n$8` $9\nw|չo8Q��O��ɯ���Y��Y �Y��Y@��ce{�YT��C�RHp1[n$8` $9\nw|չo8Qֲ��7��Y�Yp�Yp�Y���cv{�Y`{�JC�RHp1[n$8` $9\nw|չo8Qnʬ���`�Y`�Y��Y��Y���c�{�Y�Y�R��+C�RHp1[n$8` $9\nw|չo8Q �Դ���Y��Y�Y���c�{�Y R��,C�RHp1[n$8` $9\nw|չo8Q���|�Y�Y`�Y�YH��c�{�Y�Q� FC�RHp1[n$8` $9\nw|չo8Qo�|P�Y0�Y��Y �YЮY���c�{�Y�P� IC�RHp1[n$8` $9\nw|չo8Q^�K1 �Y��Y��cAp�Y ��YЮY@�{�Y`�Y@{��C�RHp1[n$8` $9\nw|չo8Q�ӹ2���� 0�Y0�Y0�Y��c�{�YP� QC�RHp1[n$8` $9\nw|չo8QLf�.O�pr ��Y��Y�Y0��c{�Y��Y {�&C�RHp1[n$8` $9\nw|չo8Q ���ЭYЮY0�Y@��c�{�Y�M��cC�RHp1[n$8` $9\nw|չo8Q� ��� �Y �Y��Y�Y���c�{�Y�L��bC�RHp1[n$8` $9\nw|չo8Q��<��$� p�Yp�YЮY��c�{�Y�K�0WC�RHp1[n$8` $9\nw|չo8QŴ�y�9m5 ��Y��Y �Y8��c�{�Y�J�SC�RHp1[n$8` $9\nw|չo8Q�B��Ѫ �YP�Yp�Y���c�{�Y�Y{�'C�RHp1[n$8` $9\nw|չo8��Yp�Y��Y0�Y`�Y��YЮY0�Y��Y��Y �Y�YP�Y�{�YP�Y�N���C�RHp1[n$8` $9\nw|չo8Q2r�2�w 8�Y�Y��Y��YPf���c!Y-m-d\TH:i:sPQ^�K1P�YP�Yp�Y��ca��� 1��Y��Y��Y(�YATOM1p�Y!l, d-M-y H:i:s Ta?�D����Y@�Y@�Y�Y@�YطYCOOKIE1 �Y !Y-m-d\TH:i:sOa�����X�Y�Y�Y��Y��Y��YISO86011иY!D, d M y H:i:s Oa\) T���Y��Y��Y@�Y8�YRFC8221��Y!l, d-M-y H:i:s Ta�5 T����YP�YP�Y�Y��Y�YRFC85010�Y!D, d M y H:i:s Oaʛ�6�h�Y�Y�Y��Y��YRFC10361�Y!D, d M Y H:i:s Oa�#�6��Y��Y��YP�YH�YRFC11231��Y!D, d M Y H:i:s Oa�(�6�ȻY`�Y`�Y�Y��YRFC28221@�Y !Y-m-d\TH:i:sPaRr7�6�x�Y�Y��Y��YP�Y��YRFC3339�P�Y�Y�YP�Y�Y��Y��Y@�Y1��Y!D, d M Y H:i:s Oa]r�|��YP�YP�Y`�Y��Y�YRSS10�Y !Y-m-d\TH:i:sPa��|h�Y�Y��Y`�Y��YW3CA�����c ��Y�Y��Y��YPOn�?�`�l�?�n@�Y�Ci���k +FaМ�PeC�Y:��R�rQ��A��� @�Y@�Y���c�{��Y!�T���C�R�]Ud@L�1$8` $9\nw|չo8Q�����w ��Y��Y�Y��Yx��c�{��Y��Y�C�R�]Ud@L�1$8` $9\nw|չo8Qo��y]��� ��Y��Y@�Y��Y��c�{��Y`�C�R�]Ud@L�1$8` $9\nw|չo8Q��O��ɯ�0�Y0�Y��Y0�Y@��ce{��YT��C�R�]Ud@L�1$8` $9\nw|չo8Qֲ��7���Y��Y��Y��Y
Process exited with code 137.