3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = " 2 "; var_dump($x); var_dump(+$x);
based on nUuqU
Output for 7.1.0 - 7.2.0
string(3) " 2 " Notice: A non well formed numeric value encountered in /in/cA67u on line 5 int(2)
Output for 5.3.19 - 7.0.20
string(3) " 2 " int(2)