3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print '<pre>'; $this = new stdClass(); $this->bla = 'dddd'; print json_encode($this);
Output for 5.0.0 - 5.4.26
Fatal error: Cannot re-assign $this in /in/5Ej2K on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<pre> Fatal error: Call to undefined function: json_encode() in /in/5Ej2K on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<pre> Fatal error: Call to undefined function: json_encode() in /in/5Ej2K on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<pre> Fatal error: Call to undefined function: json_encode() in /in/5Ej2K on line 8