334a83f7b6
Add support for boxed ints, and boxed/unboxed doubles, and bools. Emit inc/dec x86 instructions in some cases. Got rid of some "mov rX, rX" found along the way.
13 linhas
125 B
PHP
13 linhas
125 B
PHP
<?php
|
|
|
|
function dec($x) {
|
|
return $x + -1;
|
|
}
|
|
|
|
function inc($x) {
|
|
return $x - (-1);
|
|
}
|
|
|
|
var_dump(dec(5));
|
|
var_dump(inc(5));
|