Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test array_push() function : push empty set to the array --FILE-- <?php $array = ..

Decoded Output download

--TEST--
Test array_push() function : push empty set to the array
--FILE--
<?php
$array = [1,2,3];
$values = [];

var_dump( array_push($array) );
var_dump( array_push($array, ...$values) );
var_dump( $array );

echo "Done";
?>
--EXPECT--
int(3)
int(3)
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}
Done

Did this file decode correctly?

Original Code

--TEST--
Test array_push() function : push empty set to the array
--FILE--
<?php
$array = [1,2,3];
$values = [];

var_dump( array_push($array) );
var_dump( array_push($array, ...$values) );
var_dump( $array );

echo "Done";
?>
--EXPECT--
int(3)
int(3)
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}
Done

Function Calls

None

Variables

None

Stats

MD5 ad7a723bfe5f0e467d44bcc4ecb5ae1c
Eval Count 0
Decode Time 100 ms