3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'config.php'; $url = $api->uploadFile($videoTestFile); $result = $api->post( '/videos', array( 'url' => $url, 'title' => "5 حيل فعّالة وبسيطة لعدم الإفراط في الطعام", 'tags'=> array ( 0 => 'رشاقة', 1 => 'دايت', 2 => 'حيل لخسارة الوزن', 3 => 'خسارة الوزن الزائد', 4 => 'كبح الشهيّة', 5 => 'Fitness', 6 => 'Diet', 7 => 'Tricks to loose weight' ), 'channel' => "lifestyle", 'description' => "<p>أحياناً نميل إلى الإفراط بالطعام، خصوصاً عند الشعور بالملل، لدرجة يتحوّل الأمر إلى عادة يصعب السيطرة عليها. لكن ماذا لو كان هناك حيل تساعدكِ على التخلّص من هذه العادة الصعبة؟ اكتشفي ذلك في هذا الفيديو! </p><p><br></p>", 'language' => 'ar', 'published' => true ) ); var_dump($result); ?>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4ecbu on line 2 Warning: require_once(config.php): Failed to open stream: Operation not permitted in /in/4ecbu on line 2 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/4ecbu:2 Stack trace: #0 {main} thrown in /in/4ecbu on line 2
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4ecbu on line 2 Warning: require_once(config.php): Failed to open stream: Operation not permitted in /in/4ecbu on line 2 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/4ecbu:2 Stack trace: #0 {main} thrown in /in/4ecbu on line 2
Process exited with code 255.
Output for 8.0.13
Warning: require_once(config.php): Failed to open stream: No such file or directory in /in/4ecbu on line 2 Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='.:') in /in/4ecbu:2 Stack trace: #0 {main} thrown in /in/4ecbu on line 2
Process exited with code 255.
Output for 7.0.0 - 7.0.26, 7.1.0 - 7.1.12, 7.3.32 - 7.3.33, 7.4.33
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/4ecbu on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/4ecbu on line 2
Process exited with code 255.
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4ecbu on line 2 Warning: require_once(config.php): failed to open stream: Operation not permitted in /in/4ecbu on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/4ecbu on line 2
Process exited with code 255.
Output for 7.1.20
Warning: require_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in) in /in/4ecbu on line 2 Warning: require_once(config.php): failed to open stream: Operation not permitted in /in/4ecbu on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/4ecbu on line 2
Process exited with code 255.

preferences:
186.49 ms | 401 KiB | 229 Q