3v4l.org

run code in 200+ 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.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.1.7
Output for 5.3.2
1�Y10�����@���`-qQY��@�1Q����Y1�p�p�p�h�`-qQY`�p�p�1Q 11����Y1������p�`-qQYx��1Q8� Y1���x�1Y��Y1����H����1YH�
Output for 5.3.1
1h�vY1��v �v �v��v�v��pQY�v��v1Q(�v �vY1X�v��v��v��v��v��pQY��v��v��v1Q 11��v(�vY1X�v@�v@�vh�v��v��pQYȅvh�v1Q��v Y1X�v�vȅv1Y�vY10�v�v��vh�v@�v1Y�Xv
Output for 5.3.0
1���Y1���P��P��������lpQY �����1QX��P��Y1������谴�lpQY౴��1Q 11(��X��Y1���p��p�������lpQY������1Q��� Y1���@�����1Y@��Y1`����Ȳ����p��1Yȅ�
Output for 5.2.13
)a�Q�Q)R��Z�YQ�)��)��)��P�@)���l)Y ))�J� K�Q)�K��P�!Q�R�l�)!8L�Y)`*�L��K��P�p*�)YHI�)�#��#�
Output for 5.2.12
)a�1jQ)2j�:jYQ� j� j� j�0j@ j�l)Y ))�*j +jQ)�+j�0j!Q�2jlj)!8,jY)` j,j�+j�0jp j)YH)j)�j�j
Output for 5.2.11
)a��Q)x�( �YQP���P�����l)Y ))h���Q)`���!Q��l)!��Y)��x�8�����)Y��)X�X�
Output for 5.2.10
)a��HQ)X�H�HYQ0�H��H��H0�H��H��l)Y ))H�Hp�HQ)@�H��H!Q��HlH)!��HY)��HX�H�H��H��H)Y��H)8�H8�H
Output for 5.2.9
)ax-Q)�-�6YQ����,0P�l)Y ))�&'Q)�'x,!Qp.l)!((Y)P�'�'x,`)Y8%)��
Output for 5.2.8
)a�|+Q)}+��+YQ�T+�T+�T+�{+@T+�l)Y ))�u+ v+Q)�v+�{+!Q�}+l+)!8w+Y)`U+w+�v+�{+pU+)YHt+)�N+�N+
Output for 5.2.7
)a���Q)�����YQ����������@���l)Y ))��� ��Q)�����!Q���l�)!8��Y)`����Ȧ����p��)YH��)�~��~�
Output for 5.2.6
)a���Q)(��؝�YQm��l��l���`l���l)Y ))��@��Q)�����!Q���l�)!X��Y)�m�(��莻����m�)Yh��)g�g�
Output for 5.2.5
)a��ealQ)(�e؝eYQme�le�le�e`le �l)Y ))�e@�eQ)�e��e!Q��ele)!X�ealY)�me(�e�e��e�me)Yh�e)gege
Output for 5.2.4
)a�dgalQ)eg�mgYQ�<g�<g�<g�cgP<gpUl)Y ))^g0^gQ)_g�cg!Q�eglg)!H_galY)p=g_g�^g�cg�=g)YX\g)�6g�6g
Output for 5.2.3
)a��g�Q)(�gإgYQug�tg�tg�g`tgl)Y ))�g@�gQ)�g��g!Q��glg)!X�g�Y)�ug(�g�g��g�ug)Yh�g)ogog
Output for 5.2.2
)ap��Y)а(�(�����lQY���)Q0���Y)X�������h��lQY������)Q a) ������function)a��0�Y)`�X�X�p����lQY��p�)Q�� �!)��eY!p����)Y ��Y)H�����p�X�
Output for 5.2.1
)a�0^y_spY)�^�0^�0^^(^`�jQYX1^^)Q�)^�]Y)�)^H)^H)^00^�(^`�jQY*^00^H)^)Q a) `)^ )^00^function)a)^�]Y)�/^�*^�*^�/^(*^`�jQY@+^�/^)Q+^ y_sp!)�]e]Y!�*^x*^@+^)Y�+^y_spY)�*^X+^+^�/^�*^
Output for 5.2.0
)a �WoublY)@UW؄W؄WPUWH|W�)kQY��WPUW)Q�}W`MWY)~W�}W�}Wx�W}W�)kQY`~Wx�W�}W)Q a) �}Wh}Wx�Wfunction)aX}W`MWY)�WWW �Wp~W�)kQY�W �W)QPW oubl!)HNWeWY! W�~W�W)Y�WoublY)�~W�W`W �WW