3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = trim('88.99.241.121'); $arr = explode(".", $ip); foreach($arr as $p) { $arrBin[] = str_pad(decbin($p), 8, '0', STR_PAD_LEFT); } $arrBin6 = [ $arrBin[0] . $arrBin[1], $arrBin[2] . $arrBin[3] ]; foreach($arrBin6 as $p6) { $arr6[] = dechex(bindec($p6)); } print_r($arr); print_r($arrBin); print_r($arrBin6); print_r($arr6);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 88 [1] => 99 [2] => 241 [3] => 121 ) Array ( [0] => 01011000 [1] => 01100011 [2] => 11110001 [3] => 01111001 ) Array ( [0] => 0101100001100011 [1] => 1111000101111001 ) Array ( [0] => 5863 [1] => f179 )

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:
69.17 ms | 401 KiB | 8 Q