3v4l.org

run code in 300+ PHP versions simultaneously
<?php $replacements = array( "{0}" => "Динамо Киев", "{1}" => "87" ); $resultGoal = strtr($replacements, 'Первый гол: {0} на {1} мин.'); echo $resultGoal;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: strtr(): Argument #1 ($string) must be of type string, array given in /in/6b0QN:8 Stack trace: #0 /in/6b0QN(8): strtr(Array, '\xD0\x9F\xD0\xB5\xD1\x80\xD0\xB2\xD1\x8B\xD0\xB9 \xD0\xB3...') #1 {main} thrown in /in/6b0QN on line 8
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:
36.28 ms | 401 KiB | 8 Q