3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new STDClass(); $a->id = "123"; $a->idE = "123456"; $a->idC = "024680"; $a->nome = "ppppp pp pppppp"; $a->setor = "ssss ss "; $a->email = "email@email.com"; $a->telefone = "(54) 1234-1234"; $a->ramal = "123"; print_r($a); print_r((array)$a); print_r(get_object_vars($a)); $aC["ccc"] = ""; $aC["ccc"][] = (array) $a; print_r ($aC) ;
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [id] => 123 [idE] => 123456 [idC] => 024680 [nome] => ppppp pp pppppp [setor] => ssss ss [email] => email@email.com [telefone] => (54) 1234-1234 [ramal] => 123 ) Array ( [id] => 123 [idE] => 123456 [idC] => 024680 [nome] => ppppp pp pppppp [setor] => ssss ss [email] => email@email.com [telefone] => (54) 1234-1234 [ramal] => 123 ) Array ( [id] => 123 [idE] => 123456 [idC] => 024680 [nome] => ppppp pp pppppp [setor] => ssss ss [email] => email@email.com [telefone] => (54) 1234-1234 [ramal] => 123 ) Fatal error: Uncaught Error: [] operator not supported for strings in /in/fKE0d:20 Stack trace: #0 {main} thrown in /in/fKE0d on line 20
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.74 ms | 402 KiB | 8 Q