3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(filter_var('0 EUR', FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION)); var_dump(filter_var('0', FILTER_SANITIZE_NUMBER_FLOAT)); var_dump(filter_var('EUR', FILTER_SANITIZE_NUMBER_FLOAT)); var_dump(filter_var('0.00 EUR', FILTER_SANITIZE_NUMBER_FLOAT)); var_dump(filter_var('100.30 EUR', FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION));
Output for git.master, git.master_jit, rfc.property-hooks
string(1) "0" string(1) "0" string(0) "" string(3) "000" string(6) "100.30"

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