3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo urlencode(array ( 'project' => array ( 'id' => '2115733', 'name' => 'nova-generic', 'import_url' => 'https://github.com/zanphp/nova-generic', ), 'private' => '0', 'authenticity_token' => 'iOMnGj6m2Q3ptPWtX69 dBnoHAd8BTad6r3BnPNZiJk=', 'ignore' => 'no', 'license' => 'no', 'imported' => '1', ));
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /in/ZQSIC:3 Stack trace: #0 /in/ZQSIC(3): urlencode(Array) #1 {main} thrown in /in/ZQSIC on line 3
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 Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /in/ZQSIC:3 Stack trace: #0 /in/ZQSIC(3): urlencode(Array) #1 {main} thrown in /in/ZQSIC on line 3
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /in/ZQSIC:6 Stack trace: #0 /in/ZQSIC(6): urlencode(Array) #1 {main} thrown in /in/ZQSIC on line 6
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: urlencode() expects parameter 1 to be string, array given in /in/ZQSIC on line 6
Output for 7.0.18 - 7.0.20, 7.1.4 - 7.1.33, 7.2.0 - 7.2.33
Warning: urlencode() expects parameter 1 to be string, array given in /in/ZQSIC on line 4
Output for 7.0.0 - 7.0.17, 7.1.0 - 7.1.3
Warning: urlencode() expects parameter 1 to be string, array given in /in/ZQSIC on line 9

preferences:
202.27 ms | 405 KiB | 219 Q