fork download
  1. <?php
  2.  
  3. class Test{
  4. public $test1 = 5;
  5. public $test2 = 3;
  6. }
  7.  
  8.  
  9.  
  10.  
  11. $testArr = [1,2,3];
  12.  
  13. $testAssoc = ["qwe" => "ert", "хуй" => "тест", "2" => "123"];
  14.  
  15. $testObj = new Test;
  16.  
  17. var_dump($testArr, $testObj, $testAssoc);
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}
object(Test)#1 (2) {
  ["test1"]=>
  int(5)
  ["test2"]=>
  int(3)
}
array(3) {
  ["qwe"]=>
  string(3) "ert"
  ["хуй"]=>
  string(8) "тест"
  [2]=>
  string(3) "123"
}