3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array ('backtrace', 'print'); array_walk($array, 'walk_callback', str_repeat("\0",1024)); function walk_callback($value, $key, $userdata) { if ($value == 'print') { print($userdata); exit("\n\n"); } elseif ($value == 'backtrace') { debug_backtrace(); if ($userdata !== str_repeat("\0",1024)) { die("won't get here, \$userdata is still clean until we return"); } } }
Output for 4.3.0 - 5.1.6, 5.2.14 - 5.2.17, 5.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.3.2
1��Q�Y1��QP�QP�Q��QyQ`-qQY �Q��Q1QXzQPyQY1�zQ�Q�Q�Q�yQ`-qQY�zQ�Q�Q1Q 11(zQXzQY1��Qp{Qp{Q��Q�zQ`-qQY�{Q��Q1Q�{Q �Y1�{Q@{Q�{Q1Y@|Q�Y1`{Q|Q�{Q��Qp{Q1Y�NQ
Output for 5.3.1
1�HIY1NI�HI�HINI`@I��pQYpIINI1Q�AI�@IY1�AI@RI@RI@HI8AI��pQY0BI@HI@RI1Q 11xAI�AIY1�GI�BI�BI�GI@BI��pQYHCI�GI1QCI Y1�BI�BIHCI1Y�CIY1�BI`CICI�GI�BI1YI
Output for 5.3.0
1LY10L�L�L@L� L�lpQY�L@L1Q�L� LY1LpLpLpLhL�lpQY`LpLpL1Q 11�L�LY1L�L�LLpL�lpQYxLL1Q8L Y1L�LxL1Y�LY1�L�LHLL�L1YH�K
Output for 5.2.13
)a�dQ)��d8�dYQ`gdgdgd`�d�fd��l)Y ))x�d��dQ)p�d�d!Q�dld)!��dY)�gd��dH�d�d�gd)YȆd)hadhad
Output for 5.2.12
)a_fQ)�_f8hfYQ`7f7f7f`^f�6f�l)Y ))xXf�XfQ)pYf^f!Q`flf)!�YfY)�7f�YfHYf^f�7f)Y�Vf)h1fh1f
Output for 5.2.11
)ax�Q)�����YQ��������0���l)Y ))���Q)��x�!Qp�l�)!(�Y)P�����x�`�)Y8�)ؿ�ؿ�
Output for 5.2.10
)aX��Q)������YQ���`��`���������l)Y ))������Q)���X��!QP��l�)!��Y)0��������X��@��)Y��)������
Output for 5.2.9
)a�z�Q)x{�(��YQPS�S�S�Pz��R�P�l)Y ))ht��t�Q)`u��y�!Q�{�l�)!�u�Y)�S�xu�8u��y��S�)Y�r�)XM�XM�
Output for 5.2.8
)a�iQ)��i8�iYQ`bibibi`�i�ai�l)Y ))x�i��iQ)p�i�i!Q�ili)!��iY)�bi��iH�i�i�bi)Yȁi)h\ih\i
Output for 5.2.7
)az�Q)�z�8��YQ`R�R�R�`y��Q��l)Y ))xs��s�Q)pt�y�!Q{�l�)!�t�Y)�R��t�Ht�y��R�)Y�q�)hL�hL�
Output for 5.2.6
)a8��Q)���h��YQ�z�@z�@z�����y���l)Y ))����Q)���8��!Q0��l�)!��Y){����x��8�� {�)Y���)�t��t�
Output for 5.2.5
)a8"alQ)�"h+YQ��@�@��!� �l)Y ))��Q)�8!!Q0#l)!�alY)��x8! �)Y�)����
Output for 5.2.4
)a(�alQ)��X�YQ���0��0�������pUl)Y ))� �� �Q)� �(�!Q �l�)!� �alY)��� �h �(���)Y� �)������
Output for 5.2.3
)aH*��Q)�*�x3�YQ��P�P��)��l)Y ))�#��#�Q)�$�H)�!Q@+�l�)!�$��Y) ��$��$�H)�0�)Y"�)������
Output for 5.2.2
)a�5i��Y)0i���5i��5i�@i��,i��lQYP6i�@i�)Q�.i�8-i�Y)�.i��@.i�@.i�(5i��-i��lQY/i�(5i�@.i�)Q �a) �X.i�.i�(5i�function)a.i��.i�Y)�4i���/i��/i��4i� /i��lQY80i��4i�)Q0i� �!)�7i�ei�Y!��/i�p/i�80i�)Y�0i��Y)�/i��P0i�0i��4i��/i�
Output for 5.2.1
)a�Nӳ�y_spY)�ӳ��@Nӳ�@Nӳ��ӳ��Eӳ�`�jQYOӳ��ӳ�)QHGӳ��ӳ�Y)pGӳ���Fӳ��Fӳ��Mӳ��Fӳ�`�jQY�Gӳ��Mӳ��Fӳ�)Q �a) �Gӳ��Fӳ��Mӳ�function)a�Fӳ��ӳ�Y)xMӳ��pHӳ�pHӳ��Mӳ��Gӳ�`�jQY�Hӳ��Mӳ�)Q�Hӳ� y_sp!)�ӳ�eӳ�Y!��Hӳ�(Hӳ��Hӳ�)Y8Iӳ�y_spY)`Hӳ��Iӳ��Hӳ��Mӳ�pHӳ�
Output for 5.2.0
)a���oublY)�R�h��h���R��y��)kQY0���R�)Qp{��J�Y)�{� {� {����z��)kQY�{��� {�)Q a) 8{��z���function)a�z��J�Y)����|��|����|��)kQY}����)Q�|� oubl!)�K�e�Y!�|�P|�}�)Y`}�oublY)�|�0}��|�����|�