3v4l.org

run code in 200+ php & hhvm versions
<?php ini_set('open_basedir', '/'); $temp = tempnam(__DIR__, 'test'); $data = str_repeat('0', PHP_MAXPATHLEN * 2); $data = 'data://plain/text;base64,' . base64_encode($data); var_dump(copy($data, $temp));
Output for 7.1.0 - 7.2.6
Notice: tempnam(): file created in the system's temporary directory in /in/5h1aI on line 3 Warning: copy(): File name is longer than the maximum allowed path length on this platform (4096): data://plain/text;base64,MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM in /in/5h1aI on line 6 bool(false)
Output for 5.3.4 - 7.0.20
Warning: copy(): File name is longer than the maximum allowed path length on this platform (4096): data://plain/text;base64,MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM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AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMD in /in/5h1aI on line 6 bool(false)
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5h1aI on line 3 Notice: Use of undefined constant PHP_MAXPATHLEN - assumed 'PHP_MAXPATHLEN' in /in/5h1aI on line 4 bool(true)
Output for 5.1.0 - 5.1.6
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5h1aI on line 3 Notice: Use of undefined constant PHP_MAXPATHLEN - assumed 'PHP_MAXPATHLEN' in /in/5h1aI on line 4 Notice: copy(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/5h1aI on line 6 Notice: copy(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/5h1aI on line 6 Warning: copy(data://plain/text;base64,): failed to open stream: No such file or directory in /in/5h1aI on line 6 bool(false)
Output for 4.3.2 - 5.0.5
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5h1aI on line 3 Notice: Use of undefined constant PHP_MAXPATHLEN - assumed 'PHP_MAXPATHLEN' in /in/5h1aI on line 4 Notice: copy(): Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/5h1aI on line 6 Warning: copy(data://plain/text;base64,): failed to open stream: No such file or directory in /in/5h1aI on line 6 bool(false)
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /in/5h1aI on line 3 Notice: Use of undefined constant PHP_MAXPATHLEN - assumed 'PHP_MAXPATHLEN' in /in/5h1aI on line 4 Notice: copy() [http://www.php.net/function.copy]: Unable to find the wrapper "data" - did you forget to enable it when you configured PHP? in /in/5h1aI on line 6 Warning: copy(data://plain/text;base64,) [http://www.php.net/function.copy]: failed to create stream: No such file or directory in /in/5h1aI on line 6 bool(false)