Aer/tests/type_juggle.aer
belliash 029dd9bfb4
All checks were successful
The build was successful.
Several changes made:
* Do not overload entry point
 * Automatically call Program::__construct()
 * Automatically call Program::main();
 * Fix all tests
2018-08-12 12:52:35 +02:00

26 lines
389 B
Plaintext

class Program {
function main() {
$foo = '0';
var_dump($foo);
$foo += 2;
var_dump($foo);
$foo = 1;
var_dump($foo);
$foo += 1.3;
var_dump($foo);
$foo = 5 + "10 Little Piggies";
var_dump($foo);
$foo = 5 + 10;
var_dump($foo);
$foo = 'car';
$foo[0] = 'b';
var_dump($foo);
$foo = 10;
$foo = (bool) $foo;
var_dump($foo);
$foo = '';
var_dump($foo);
}
}