3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $limit = 50; for($i = 1; $i <= $limit; $i++){ $f = "<?php echo \"P$i loaded\\n\"; class P$i{ public static function execute_me(){ return \"P$i executed\\n\"; } }"; file_put_contents("P$i.class.php", $f); } function __autoload($class_name) { require_once $class_name . '.class.php'; } function callback($limit, $i = 1){ //class_exists("P$i"); echo call_user_func_array(array("P$i", 'execute_me'), array()); if($i < $limit) callback($limit, $i+1); } callback($limit);
Output for 5.2.3 - 7.1.0
Warning: file_put_contents(P1.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P2.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P3.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P4.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P5.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P6.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P7.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P8.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P9.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P10.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P11.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P12.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P13.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P14.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P15.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P16.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P17.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P18.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P19.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P20.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P21.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P22.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P23.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P24.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P25.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P26.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P27.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P28.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P29.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P30.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P31.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P32.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P33.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P34.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P35.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P36.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P37.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P38.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P39.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P40.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P41.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P42.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P43.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P44.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P45.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P46.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P47.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P48.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P49.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: file_put_contents(P50.class.php): failed to open stream: Permission denied in /in/vTlgB on line 11 Warning: require_once(P1.class.php): failed to open stream: No such file or directory in /in/vTlgB on line 14 Fatal error: require_once(): Failed opening required 'P1.class.php' (include_path='.:') in /in/vTlgB on line 14
Process exited with code 255.
Output for 5.1.0 - 5.2.2
Warning: file_put_contents(P1.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P2.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P3.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P4.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P5.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P6.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P7.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P8.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P9.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P10.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P11.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P12.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P13.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P14.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P15.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P16.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P17.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P18.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P19.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P20.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P21.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P22.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P23.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P24.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P25.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P26.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P27.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P28.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P29.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P30.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P31.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P32.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P33.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P34.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P35.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P36.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P37.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P38.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P39.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P40.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P41.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P42.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P43.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P44.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P45.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P46.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P47.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P48.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P49.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P50.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: require_once(P1.class.php): failed to open stream: No such file or directory in /in/vTlgB on line 14 Fatal error: require_once(): Failed opening required 'P1.class.php' (include_path='.:') in /in/vTlgB on line 14
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: file_put_contents(P1.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P2.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P3.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P4.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P5.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P6.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P7.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P8.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P9.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P10.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P11.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P12.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P13.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P14.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P15.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P16.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P17.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P18.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P19.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P20.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P21.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P22.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P23.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P24.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P25.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P26.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P27.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P28.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P29.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P30.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P31.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P32.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P33.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P34.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P35.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P36.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P37.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P38.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P39.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P40.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P41.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P42.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P43.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P44.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P45.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P46.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P47.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P48.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P49.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: file_put_contents(P50.class.php): failed to open stream: Read-only file system in /in/vTlgB on line 11 Warning: __autoload(P1.class.php): failed to open stream: No such file or directory in /in/vTlgB on line 14 Fatal error: __autoload(): Failed opening required 'P1.class.php' (include_path='.:') in /in/vTlgB on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/vTlgB on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/vTlgB on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/vTlgB on line 11