3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = (float)1; $lat2 = 56.6404468; $lon2 = 22.4747625; $lat1 = 56.6404468; $lon1 = 22.4747622; $theta = $lon1 - $lon2; $var = sin( deg2rad( $lat1 ) ) * sin( deg2rad( $lat2 ) ) + cos( deg2rad( $lat1 ) ) * cos( deg2rad( $lat2 ) ) * cos( deg2rad( $theta ) ); var_dump( acos( $var ) ); // float NAN
based on eFYIN
Output for 4.3.4 - 5.0.5, 5.1.1 - 7.2.0
float(NAN)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/RCskd on line 12
Process exited with code 255.
Output for 4.3.3

Process exited with code 137.
Output for 4.3.0 - 4.3.2
float(0.E+79)