3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public $str; public function __toString() { return $this->str; } } $a = new Foo();$a->str = '111'; $b = new Foo();$b->str = '1b'; $c = new Foo();$c->str = '1A'; $list = [$a, $b, $c]; natcasesort($list); echo impolode(', ', $list);
based on OKda2
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function impolode() in /in/XthpC:20 Stack trace: #0 {main} thrown in /in/XthpC on line 20
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Call to undefined function impolode() in /in/XthpC on line 20
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/XthpC on line 16
Process exited with code 255.