3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pad = 'fc15:7e4c:69c9:83a3:9c0a:c738:3f27:0883'; $npad = 'fc15:7e4c:69c9:83a3:9c0a:c738:3f27:883'; $cpad = filter_var($pad, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); $cnpad = filter_var($npad, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); $resp = [ 'pad' => $pad, 'not-padded' => $npad, 'padded filter_var' => $cpad, 'not-padded filter_var' => $cnpad ]; var_dump($resp);
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["pad"]=> string(39) "fc15:7e4c:69c9:83a3:9c0a:c738:3f27:0883" ["not-padded"]=> string(38) "fc15:7e4c:69c9:83a3:9c0a:c738:3f27:883" ["padded filter_var"]=> string(39) "fc15:7e4c:69c9:83a3:9c0a:c738:3f27:0883" ["not-padded filter_var"]=> string(38) "fc15:7e4c:69c9:83a3:9c0a:c738:3f27:883" }

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