3v4l.org

run code in 500+ PHP versions simultaneously
<?php setlocale( LC_NUMERIC, 'de_DE.UTF-8' ); $float = 3.45; echo ' (string) $float => '; var_dump( (string) $float ); // string(4) "3,45" <-- comma in PHP<8 echo 'json_encode( $float ) => '; var_dump( json_encode( $float ) ); // string(4) "3.45" <-- always a period in PHP 7+
Output for rfc.property-hooks, git.master, git.master_jit
(string) $float => string(4) "3.45" json_encode( $float ) => string(4) "3.45"

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:
58.82 ms | 2782 KiB | 4 Q