9e127b9831
Most of this is ported over, except some omissions:
- array_filter, array_key_exists (suspected we had coverage already;
one is a bytecode, and one was rewritten in hhas recently)
- some random cases distinguishing init_null_variant vs. null_variant
32 linhas
473 B
PHP
32 linhas
473 B
PHP
<?php
|
|
|
|
function a() {
|
|
$input = array("a" => 1, "b" => 2);
|
|
array_shift($input);
|
|
var_dump($input);
|
|
}
|
|
|
|
function b() {
|
|
$input = array("a" => 1, 23 => 2);
|
|
array_shift($input);
|
|
var_dump($input);
|
|
}
|
|
|
|
function c() {
|
|
$input = array("a" => 1, -23 => 2);
|
|
array_shift($input);
|
|
var_dump($input);
|
|
}
|
|
|
|
function d() {
|
|
$input = array("orange", "banana", "apple", "raspberry");
|
|
$fruit = array_shift($input);
|
|
var_dump($input);
|
|
var_dump($fruit);
|
|
}
|
|
|
|
a();
|
|
b();
|
|
c();
|
|
d();
|