3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Precision: " . ini_get('precision') . PHP_EOL; echo (0.1 + 0.2) . PHP_EOL; echo ((0.1 + 0.2) === 0.3 ? 'true' : 'false') . PHP_EOL; ini_set('precision', 17); echo "Precision: " . ini_get('precision') . PHP_EOL; echo (0.1 + 0.2) . PHP_EOL; echo ((0.1 + 0.2) === 0.3 ? 'true' : 'false') . PHP_EOL; ini_set('precision', 33); echo "Precision: " . ini_get('precision') . PHP_EOL; echo (0.1 + 0.2) . PHP_EOL; echo ((0.1 + 0.2) === 0.3 ? 'true' : 'false') . PHP_EOL;
based on WOefC

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Precision: 14 0.3 false Precision: 17 0.3 false Precision: 33 0.3 false
Output for Array change keys
Precision: 14 0.3 false Precision: 17 0.3 false Precision: 33 0.3 false
Output for Lexical anon
Precision: 14 0.3 false Precision: 17 0.3 false Precision: 33 0.3 false

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