3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Some { public function __construct() { echo get_class($this); } } class Any extends Some { public function call_construct() { parent::__construct(); } } //$some = new Some; //$any = new Any; echo php_uname();
Output for 7.1.0
Linux php_shell 4.8.11-1-ARCH #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016 x86_64
Output for 5.6.28, 7.0.14
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64
Output for 5.5.24 - 5.5.32, 5.5.34, 5.6.8 - 5.6.18, 5.6.20 - 5.6.21, hhvm-3.10.0, 7.0.0 - 7.0.3, 7.0.5 - 7.0.6
Linux php_shell 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64
Output for 5.5.33, 5.6.19, hhvm-3.12.0, 7.0.4
Linux php_shell 4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC 2016 x86_64
Output for 5.5.35 - 5.6.7
Linux php_shell 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64
Output for 5.4.41 - 5.4.45
Linux php_shell 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64
Output for 5.4.39 - 5.4.40
Linux php_shell 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64
Output for 5.4.38
Linux php_shell 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64
Output for 5.4.34 - 5.4.37
Linux php_shell 3.18.5-1-ARCH #1 SMP PREEMPT Fri Jan 30 07:31:50 CET 2015 x86_64
Output for 5.0.0 - 5.4.32
Linux php_shell 3.8.2 #3 SMP Fri May 31 14:28:26 UTC 2013 x86_64
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/RFXr2 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/RFXr2 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/RFXr2 on line 4
Process exited with code 255.