3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ "0×00" => "@", "0×01" => "£", "0×02" => "$", //... need to fill here all the table ]; function hexToGSM($hex,$array) { if(array_key_exists($hex,$array)) return $array[$hex]; else return null; } var_dump(hexToGSM("0×01",$array));
Output for rfc.property-hooks, git.master, git.master_jit
string(2) "£"

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:
45.35 ms | 1444 KiB | 4 Q