3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types = 1); var_dump(FILE_USE_INCLUDE_PATH); // int(1) file_get_contents(__FILE__, true); file_get_contents(__FILE__, FILE_USE_INCLUDE_PATH); // error echo 'finish';
based on nWlUD
Output for 7.3.0alpha1
int(1) Fatal error: Uncaught TypeError: file_get_contents() expects parameter 2 to be bool, int given in /in/2Uvu1:7 Stack trace: #0 /in/2Uvu1(7): file_get_contents('/in/2Uvu1', 1) #1 {main} thrown in /in/2Uvu1 on line 7
Process exited with code 255.
Output for 7.0.0 - 7.2.6
int(1) Fatal error: Uncaught TypeError: file_get_contents() expects parameter 2 to be boolean, integer given in /in/2Uvu1:7 Stack trace: #0 /in/2Uvu1(7): file_get_contents('/in/2Uvu1', 1) #1 {main} thrown in /in/2Uvu1 on line 7
Process exited with code 255.
Output for hhvm-3.21.0
int(1) Fatal error: Uncaught TypeError: Argument 2 passed to file_get_contents() must be an instance of bool, int given in /in/2Uvu1:7 Stack trace: #0 /in/2Uvu1(7): file_get_contents() #1 {main}
Process exited with code 255.
Output for hhvm-3.18.4
int(1) Fatal error: Uncaught TypeError: Argument 2 passed to file_get_contents() must be an instance of bool, int given in /in/2Uvu1:7 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: Unsupported declare 'strict_types' in /in/2Uvu1 on line 2 int(1) finish