3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((float) '1613938511.017448'); // float(1613938511.0174) var_dump((float) '1613938511.023691'); // float(1613938511.0237) var_dump((float) '1613938511.018045'); // float(1613938511.018) var_dump((float) '1613938511.018045' == 1613938511.018045 ); // true var_dump((float) '1613938511.018045' == 1613938511.0180 ); // false var_dump((float) '1613938511.018045' === 1613938511.018045 ); // true var_dump((float) '1613938511.018045' === 1613938511.0180 ); // false var_dump(json_encode((float) '1613938511.018045') ); // "1613938511.018045" $f = (float) '1613938511.018045'; // "1613938511.018045" var_dump($f); print_r($f); var_dump(json_encode($f)); // "1613938511.018045"
Output for git.master, git.master_jit, rfc.property-hooks
float(1613938511.017448) float(1613938511.023691) float(1613938511.018045) bool(true) bool(false) bool(true) bool(false) string(17) "1613938511.018045" float(1613938511.018045) 1613938511.018string(17) "1613938511.018045"

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