3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $types = array( 'boolean' => true, 'integer' => 1, 'double' => 2.2, 'NULL' => NULL); foreach ($types as $key => $type) { echo "$key -> " . var_export($type, 1) . "\n"; }
Output for 4.3.0 - 5.4.21, 5.5.0 - 5.5.5, hhvm-3.10.0 - 3.12.0, 7.1.0
boolean -> true integer -> 1 double -> 2.2 NULL -> NULL
Output for 5.6.28, 7.0.14
boolean -> true integer -> 1 double -> 2.2000000000000002 NULL -> NULL
Output for 5.4.22 - 5.4.45, 5.5.6 - 5.6.25, 7.0.0 - 7.0.10
boolean -> true integer -> 1 double -> 2.20000000000000017763568 NULL -> NULL