3v4l.org

run code in 300+ PHP versions simultaneously
<?php $conf['dl_url'] = 'http://droidphp-repository.herokuapp.com/'; $conf['data'] = '/data/data/org.opendroidphp/'; $conf['file_system'] = '/sdcard/droidphp/'; function getFilesize($url){ $head = array_change_key_case(get_headers($url, TRUE)); return $head['content-length']; } $value[] = [ 'repo_name' => 'Components Security Fix', 'repo_url' => 'https://dl.dropboxusercontent.com/s/ldl3y1tlqodkvfs/data_heartblead_fix.zip?dl=0', 'repo_install_location' => $conf['data'], 'repo_file_size' => getFilesize('https://dl.dropboxusercontent.com/s/ldl3y1tlqodkvfs/data_heartblead_fix.zip?dl=0'), ]; file_put_contents('packages.json', json_encode($value, JSON_PRETTY_PRINT));
Output for 8.3.0 - 8.3.14, 8.4.1 - 8.4.2
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Fatal error: Uncaught TypeError: array_change_key_case(): Argument #1 ($array) must be of type array, false given in /in/4uo05:8 Stack trace: #0 /in/4uo05(8): array_change_key_case(false) #1 /in/4uo05(16): getFilesize('https://dl.drop...') #2 {main} thrown in /in/4uo05 on line 8
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Fatal error: Uncaught TypeError: array_change_key_case(): Argument #1 ($array) must be of type array, bool given in /in/4uo05:8 Stack trace: #0 /in/4uo05(8): array_change_key_case(false) #1 /in/4uo05(16): getFilesize('https://dl.drop...') #2 {main} thrown in /in/4uo05 on line 8
Process exited with code 255.
Output for 7.4.33
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, bool given in /in/4uo05 on line 8 Notice: Trying to access array offset on value of type null in /in/4uo05 on line 9 Warning: file_put_contents(packages.json): failed to open stream: Read-only file system in /in/4uo05 on line 19
Output for 7.4.0 - 7.4.32
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, bool given in /in/4uo05 on line 8 Notice: Trying to access array offset on value of type null in /in/4uo05 on line 9 Warning: file_put_contents(): open_basedir restriction in effect. File(packages.json) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4uo05 on line 19 Warning: file_put_contents(packages.json): failed to open stream: Operation not permitted in /in/4uo05 on line 19
Output for 7.3.32 - 7.3.33
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, bool given in /in/4uo05 on line 8 Warning: file_put_contents(packages.json): failed to open stream: Read-only file system in /in/4uo05 on line 19
Output for 7.3.0 - 7.3.31
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, bool given in /in/4uo05 on line 8 Warning: file_put_contents(): open_basedir restriction in effect. File(packages.json) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4uo05 on line 19 Warning: file_put_contents(packages.json): failed to open stream: Operation not permitted in /in/4uo05 on line 19
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, boolean given in /in/4uo05 on line 8 Warning: file_put_contents(): open_basedir restriction in effect. File(packages.json) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4uo05 on line 19 Warning: file_put_contents(packages.json): failed to open stream: Operation not permitted in /in/4uo05 on line 19
Output for 5.4.0 - 5.4.45
Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/4uo05 on line 8 Warning: get_headers(): This function may only be used against URLs in /in/4uo05 on line 8 Warning: array_change_key_case() expects parameter 1 to be array, boolean given in /in/4uo05 on line 8 Warning: file_put_contents(packages.json): failed to open stream: Permission denied in /in/4uo05 on line 19
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/4uo05 on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/4uo05 on line 12
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/4uo05 on line 12
Process exited with code 255.

preferences:
52.38 ms | 423 KiB | 5 Q