3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Bonjour"; $stringArray = str_split($string); foreach ($stringArray as $key=>$letter) { $string[$key] = ord($letter); } print_r($string);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 Warning: Only the first byte will be assigned to the string offset in /in/GaKU0 on line 9 6111111

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:
46.02 ms | 402 KiB | 8 Q