3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(+"1", +"1.2", +"1.", +".2", +"1e3", +"1.2e3", +"1.e3", +".2e3", +"1e", (float) "1e");
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/Ye6cC on line 2 int(1) float(1.2) float(1) float(0.2) float(1000) float(1200) float(1000) float(200) int(1) float(1)
Output for 4.3.0 - 5.0.0, 5.0.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.14
int(1) float(1.2) float(1) float(0.2) float(1000) float(1200) float(1000) float(200) int(1) float(1)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.1
int(1) float(1.2) float(1) int(0) float(1000) float(1200) float(1000) int(0) int(1) float(1)