3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new SQLite3(':memory:'); $db->exec("CREATE TABLE foo (bar int)"); $db->exec("INSERT INTO foo VALUES (9223372036854775808)"); var_dump($db->querySingle("SELECT bar FROM foo"));
based on 07TWk
Output for 8.0.0alpha1 - beta1
float(9.223372036854776E+18)
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.21, 7.4.0 - 7.4.9
float(9.2233720368548E+18)