3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('open_basedir', '/tmp'); $filename = tempnam('/tmp', 'foo'); file_exists($filename . '/bar');
Output for 7.2.0
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooKSotpj/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.1.10
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo1cMzu2/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.1.7
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooo6CNCt/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.1.6
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo5ZXhE5/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.1.5
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooYC3dfv/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.1.0
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foob0YM4k/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.20
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foodXwsA2/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.6
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooJAkuby/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.5
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/footnJnQa/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.4
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo74JjHW/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.3
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooHJJEsi/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.2
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooEAI0HW/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.1
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foonB1c7r/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 7.0.0
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foosA9GTr/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.28
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo0WqsXh/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.21
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo5D5EAo/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.20
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo5LMm6u/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.19
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foomgfokp/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.18
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo8dTuDu/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.17
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooR5msxe/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.16
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo5OT1cU/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.15
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooeV19Oh/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.14
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo19HJx0/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.13
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooltk41C/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.12
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foofXtyYo/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.11
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo2WRrTB/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.10
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foovT3yy8/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.9
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo02pdVL/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.6.8
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fookF2Is7/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.35
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooqwYnmM/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.34
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooMw9fLl/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.33
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo1jDy8a/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.32
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foomZHlxe/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.31
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooFQ1zZs/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.30
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooiwRtQw/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.29
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foopAebKn/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.28
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo41jbLM/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.27
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooPZX3AW/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.26
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooAN2qG9/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.25
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooqk8xVy/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.5.24
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo16aaop/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.45
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooXYwpXV/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.44
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooaNgAs7/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.43
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foocorMbh/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.42
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foov7d0Gj/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.41
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooc3J4ku/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.40
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooC1B3XB/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.39
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foop0k7LL/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.38
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo2Pj1OV/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.37
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooIxItY6/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.36
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo7TQXsg/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.35
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo45TqFo/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.34
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooqe6r1n/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.32
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo7xiw0x/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.31
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foosJXwQI/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.30
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foozqi3VO/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.29
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooa9G6SX/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.28
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foodhRcpc/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.27
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooHfcFDm/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.26
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foonRFVMo/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.25
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo7GIkGy/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.24
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooH8RNLE/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.23
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooKSQlKP/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.22
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooOhh9XZ/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.21
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foodcUS48/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.20
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/footfsMHe/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.19
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo1VdKkp/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.18
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooaVmbZq/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.17
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo4pzFHA/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.16
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooo5J7KH/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.15
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooMdX4wR/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.14
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooMCeWB0/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.13
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foolNEDab/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.12
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooo1g31h/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.11
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooXjyp2s/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.10
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooIQw86t/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.9
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooBAWIfD/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.8
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foouXaTsJ/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.7
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foodCk58i/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.6
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foogmyw9A/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.5
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo94T8yV/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.4
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo3tjRM2/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.3
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooqvz4ol/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.2
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooeAGFQK/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.4.1
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooUpp3lx/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.29
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foowVVUea/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.28
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooBh0DEC/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.27
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooMRcOSM/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.26
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooq6sPbh/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.25
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooO9m9lz/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.24
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foox83JhQ/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.23
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foow9jJ76/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.22
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooSRPmDw/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.21
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foos0EkOI/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.20
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foo9L0AY6/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.19
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/foooZjpdu/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5
Output for 5.3.18
Warning: file_exists(): open_basedir restriction in effect. File(/tmp/fooWUE9rM/bar) is not within the allowed path(s): (/tmp) in /in/kfvtP on line 5