3v4l.org

run code in 200+ PHP versions simultaneously
<?php ini_set('open_basedir', '/tmp'); $filename = '/tmp/foo9907908'; touch($filename); file_exists($filename . '/bar');
based on kfvtP
Output for 5.3.0 - 7.2.8
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo9907908/bar) is not within the allowed path(s): (/tmp) in /in/paO83 on line 6
Output for 4.3.0 - 5.2.17