3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1392'; $arr = str_split($str); print_r($arr); echo $string = mb_convert_encoding($str); echo intval($string)+1;
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => � [1] => � [2] => � [3] => � [4] => � [5] => � [6] => � [7] => � [8] => � [9] => � [10] => � [11] => � ) Fatal error: Uncaught ArgumentCountError: mb_convert_encoding() expects at least 2 arguments, 1 given in /in/8Kjqp:6 Stack trace: #0 /in/8Kjqp(6): mb_convert_encoding('\xEF\xBC\x91\xEF\xBC\x93\xEF\xBC\x99\xEF\xBC\x92') #1 {main} thrown in /in/8Kjqp on line 6
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:
47.98 ms | 402 KiB | 8 Q