@ 2013-09-16T07:48:18Z <?php
error_reporting(E_ALL);
echo 'Testing on PHP version ' . PHP_VERSION . PHP_EOL . PHP_EOL;
sleep(1);
echo 'Checking if `__DIR__` is defined...' . PHP_EOL;
if (!defined('__DIR__')) {
sleep(2);
echo 'Nope, `defined()` returned `(bool)false`.' . PHP_EOL;
echo 'So, seems like the magic constant `__DIR__` is not defined.' . PHP_EOL . PHP_EOL;
sleep(2);
echo 'No prob. Executing `define(\'__DIR__\', \'/foo/bar\')`...' . PHP_EOL;
define('__DIR__', '/foo/bar');
sleep(1);
echo 'Done, defined `__DIR__` as "/foo/bar".' . PHP_EOL . PHP_EOL;
sleep(1);
echo 'Double-checking `__DIR__` is defined now...' . PHP_EOL;
sleep(2);
if (!defined('__DIR__')) {
echo 'WTF, `defined(\'__DIR__\')` again returned `(bool)false`?!' . PHP_EOL;
} else{
echo 'Strike, this time `defined(\'__DIR__\')` returned `(bool)true`.' . PHP_EOL;
echo 'So, seems like `__DIR__` was successfully defined. :)' . PHP_EOL . PHP_EOL;
}
} else{
echo 'Yep, `defined(\'__DIR__\')` returned `(bool)true`.' . PHP_EOL;
echo 'The magic constant `__DIR__` seems to be defined.' . PHP_EOL . PHP_EOL;
}
sleep(2);
echo 'Finally, here is the result of `var_dump(__DIR__)`:' . PHP_EOL;
var_dump(__DIR__);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.3.7 Testing on PHP version 8.3.7
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.6 Testing on PHP version 8.3.6
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.5 Testing on PHP version 8.3.5
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.4 Testing on PHP version 8.3.4
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.3 Testing on PHP version 8.3.3
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.2 Testing on PHP version 8.3.2
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.1 Testing on PHP version 8.3.1
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.3.0 Testing on PHP version 8.3.0
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.18 Testing on PHP version 8.2.18
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.17 Testing on PHP version 8.2.17
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.16 Testing on PHP version 8.2.16
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.15 Testing on PHP version 8.2.15
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.14 Testing on PHP version 8.2.14
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.13 Testing on PHP version 8.2.13
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.12 Testing on PHP version 8.2.12
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.11 Testing on PHP version 8.2.11
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.10 Testing on PHP version 8.2.10
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.9 Testing on PHP version 8.2.9
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.8 Testing on PHP version 8.2.8
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.7 Testing on PHP version 8.2.7
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.6 Testing on PHP version 8.2.6
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.5 Testing on PHP version 8.2.5
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.4 Testing on PHP version 8.2.4
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.3 Testing on PHP version 8.2.3
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.2 Testing on PHP version 8.2.2
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.1 Testing on PHP version 8.2.1
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.2.0 Testing on PHP version 8.2.0
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.28 Testing on PHP version 8.1.28
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.27 Testing on PHP version 8.1.27
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.26 Testing on PHP version 8.1.26
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.25 Testing on PHP version 8.1.25
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.24 Testing on PHP version 8.1.24
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.23 Testing on PHP version 8.1.23
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.22 Testing on PHP version 8.1.22
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.21 Testing on PHP version 8.1.21
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.20 Testing on PHP version 8.1.20
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.19 Testing on PHP version 8.1.19
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.18 Testing on PHP version 8.1.18
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.17 Testing on PHP version 8.1.17
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.16 Testing on PHP version 8.1.16
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.15 Testing on PHP version 8.1.15
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.14 Testing on PHP version 8.1.14
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.13 Testing on PHP version 8.1.13
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.12 Testing on PHP version 8.1.12
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.11 Testing on PHP version 8.1.11
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.10 Testing on PHP version 8.1.10
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.9 Testing on PHP version 8.1.9
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.8 Testing on PHP version 8.1.8
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.7 Testing on PHP version 8.1.7
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.6 Testing on PHP version 8.1.6
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.5 Testing on PHP version 8.1.5
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.4 Testing on PHP version 8.1.4
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.3 Testing on PHP version 8.1.3
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.2 Testing on PHP version 8.1.2
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.1 Testing on PHP version 8.1.1
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.1.0 Testing on PHP version 8.1.0
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.30 Testing on PHP version 8.0.30
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.29 Testing on PHP version 8.0.29
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.28 Testing on PHP version 8.0.28
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.27 Testing on PHP version 8.0.27
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.26 Testing on PHP version 8.0.26
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.25 Testing on PHP version 8.0.25
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.24 Testing on PHP version 8.0.24
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.23 Testing on PHP version 8.0.23
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.22 Testing on PHP version 8.0.22
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.21 Testing on PHP version 8.0.21
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.20 Testing on PHP version 8.0.20
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.19 Testing on PHP version 8.0.19
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.18 Testing on PHP version 8.0.18
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.17 Testing on PHP version 8.0.17
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.16 Testing on PHP version 8.0.16
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.15 Testing on PHP version 8.0.15
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.14 Testing on PHP version 8.0.14
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.13 Testing on PHP version 8.0.13
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.12 Testing on PHP version 8.0.12
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.11 Testing on PHP version 8.0.11
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.10 Testing on PHP version 8.0.10
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.9 Testing on PHP version 8.0.9
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.8 Testing on PHP version 8.0.8
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.7 Testing on PHP version 8.0.7
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.6 Testing on PHP version 8.0.6
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.5 Testing on PHP version 8.0.5
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.3 Testing on PHP version 8.0.3
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.2 Testing on PHP version 8.0.2
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.1 Testing on PHP version 8.0.1
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 8.0.0 Testing on PHP version 8.0.0
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.33 Testing on PHP version 7.4.33
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.32 Testing on PHP version 7.4.32
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.30 Testing on PHP version 7.4.30
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.29 Testing on PHP version 7.4.29
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.28 Testing on PHP version 7.4.28
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.27 Testing on PHP version 7.4.27
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.26 Testing on PHP version 7.4.26
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.25 Testing on PHP version 7.4.25
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.24 Testing on PHP version 7.4.24
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.23 Testing on PHP version 7.4.23
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.22 Testing on PHP version 7.4.22
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.21 Testing on PHP version 7.4.21
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.20 Testing on PHP version 7.4.20
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.19 Testing on PHP version 7.4.19
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.16 Testing on PHP version 7.4.16
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.15 Testing on PHP version 7.4.15
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.14 Testing on PHP version 7.4.14
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.13 Testing on PHP version 7.4.13
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.12 Testing on PHP version 7.4.12
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.11 Testing on PHP version 7.4.11
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.10 Testing on PHP version 7.4.10
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.9 Testing on PHP version 7.4.9
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.8 Testing on PHP version 7.4.8
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.7 Testing on PHP version 7.4.7
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.6 Testing on PHP version 7.4.6
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.5 Testing on PHP version 7.4.5
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.4 Testing on PHP version 7.4.4
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.4.3 Testing on PHP version 7.4.3
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.33 Testing on PHP version 7.3.33
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.32 Testing on PHP version 7.3.32
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.31 Testing on PHP version 7.3.31
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.30 Testing on PHP version 7.3.30
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.29 Testing on PHP version 7.3.29
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.28 Testing on PHP version 7.3.28
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.27 Testing on PHP version 7.3.27
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.26 Testing on PHP version 7.3.26
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.25 Testing on PHP version 7.3.25
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.24 Testing on PHP version 7.3.24
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.23 Testing on PHP version 7.3.23
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.21 Testing on PHP version 7.3.21
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.20 Testing on PHP version 7.3.20
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.19 Testing on PHP version 7.3.19
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.18 Testing on PHP version 7.3.18
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.17 Testing on PHP version 7.3.17
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.3.16 Testing on PHP version 7.3.16
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.33 Testing on PHP version 7.2.33
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.32 Testing on PHP version 7.2.32
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.31 Testing on PHP version 7.2.31
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.30 Testing on PHP version 7.2.30
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.29 Testing on PHP version 7.2.29
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.2.10 Testing on PHP version 7.2.10
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.1.22 Testing on PHP version 7.1.22
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 7.1.21 Testing on PHP version 7.1.21
Checking if `__DIR__` is defined...
Process exited with code 137 . Output for 5.6.38 Testing on PHP version 5.6.38
Checking if `__DIR__` is defined...
Process exited with code 137 . preferences:dark mode live preview
122.76 ms | 401 KiB | 145 Q