- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '"1"' (T_CONSTANT_ENCAPSED_STRING) in /in/Y4Wel on line 13
Process exited with code 255.
<?php
// a wolrd of inconsistencies
$i = (int) "1"; // legal
var_dump($i);
$i = ( int ) "1"; // legal
var_dump($i);
$i = (
int
) "1"; // illegal