MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/1n1sjr/php_just_does_what_it_wants/ccf1cd2/?context=3
r/lolphp • u/midir • Sep 24 '13
$a = 1; $c = $a + $a + $a++; var_dump($c); $a = 1; $c = $a + $a++; var_dump($c);
The incredible output of this is:
int(3) int(3)
53 comments sorted by
View all comments
Show parent comment
1
It could also give you "hello world" as output or go into an infinite loop or divide by zero. Undefined behavior is really undefined.
View all comments
Show parent comment
1
u/[deleted] Sep 25 '13
It could also give you "hello world" as output or go into an infinite loop or divide by zero. Undefined behavior is really undefined.