3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(urlencode(get_class(new class extends stdClass {}) . " some other string"));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
string(62) "stdClass%40anonymous%00%2Fin%2F978e7%3A3%240+some+other+string"
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 string(62) "stdClass%40anonymous%00%2Fin%2F978e7%3A3%240+some+other+string"
Output for 7.4.3 - 7.4.33
string(59) "class%40anonymous%00%2Fin%2F978e7%3A3%240+some+other+string"
Output for 7.4.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7fdb9687a040+some+other+string"
Output for 7.3.33
string(65) "class%40anonymous%00%2Fin%2F978e70x7fb433628040+some+other+string"
Output for 7.3.32
string(65) "class%40anonymous%00%2Fin%2F978e70x7fce5a77b040+some+other+string"
Output for 7.3.31
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9c93bea040+some+other+string"
Output for 7.3.30
string(65) "class%40anonymous%00%2Fin%2F978e70x7f6334918040+some+other+string"
Output for 7.3.29
string(65) "class%40anonymous%00%2Fin%2F978e70x7f46903d9040+some+other+string"
Output for 7.3.28
string(65) "class%40anonymous%00%2Fin%2F978e70x7f16981b1040+some+other+string"
Output for 7.3.27
string(65) "class%40anonymous%00%2Fin%2F978e70x7f8953282040+some+other+string"
Output for 7.3.26
string(65) "class%40anonymous%00%2Fin%2F978e70x7fceb9f92040+some+other+string"
Output for 7.3.24
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9a90365040+some+other+string"
Output for 7.3.23
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4214d44040+some+other+string"
Output for 7.3.21
string(65) "class%40anonymous%00%2Fin%2F978e70x7f19dc487040+some+other+string"
Output for 7.3.20
string(65) "class%40anonymous%00%2Fin%2F978e70x7fb81b824040+some+other+string"
Output for 7.3.19
string(65) "class%40anonymous%00%2Fin%2F978e70x7f462657f040+some+other+string"
Output for 7.3.18
string(65) "class%40anonymous%00%2Fin%2F978e70x7fb6892c3040+some+other+string"
Output for 7.3.17
string(65) "class%40anonymous%00%2Fin%2F978e70x7f382bf44040+some+other+string"
Output for 7.3.16
string(65) "class%40anonymous%00%2Fin%2F978e70x7f44fc5bb040+some+other+string"
Output for 7.3.12
string(65) "class%40anonymous%00%2Fin%2F978e70x7f76e8235040+some+other+string"
Output for 7.3.11
string(65) "class%40anonymous%00%2Fin%2F978e70x7f059be2e040+some+other+string"
Output for 7.3.10
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff53dd71040+some+other+string"
Output for 7.3.9
string(65) "class%40anonymous%00%2Fin%2F978e70x7fae8b9a6040+some+other+string"
Output for 7.3.8
string(65) "class%40anonymous%00%2Fin%2F978e70x7f82046a0040+some+other+string"
Output for 7.3.7
string(65) "class%40anonymous%00%2Fin%2F978e70x7fcfa0d88040+some+other+string"
Output for 7.3.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7f63cd107040+some+other+string"
Output for 7.3.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7f51d145e040+some+other+string"
Output for 7.3.4
string(65) "class%40anonymous%00%2Fin%2F978e70x7f0291889040+some+other+string"
Output for 7.3.3
string(65) "class%40anonymous%00%2Fin%2F978e70x7fa310b40040+some+other+string"
Output for 7.3.2
string(65) "class%40anonymous%00%2Fin%2F978e70x7f911e68e040+some+other+string"
Output for 7.3.1
string(65) "class%40anonymous%00%2Fin%2F978e70x7f3e0b3c8040+some+other+string"
Output for 7.3.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7fd0025f0040+some+other+string"
Output for 7.2.33
string(65) "class%40anonymous%00%2Fin%2F978e70x7f8303f66040+some+other+string"
Output for 7.2.32
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe739a85040+some+other+string"
Output for 7.2.31
string(65) "class%40anonymous%00%2Fin%2F978e70x7fb6d7365040+some+other+string"
Output for 7.2.30
string(65) "class%40anonymous%00%2Fin%2F978e70x7fef97763040+some+other+string"
Output for 7.2.29
string(65) "class%40anonymous%00%2Fin%2F978e70x7f5b45b30040+some+other+string"
Output for 7.2.25
string(65) "class%40anonymous%00%2Fin%2F978e70x7fc8be3d9040+some+other+string"
Output for 7.2.24
string(65) "class%40anonymous%00%2Fin%2F978e70x7fc1ba502040+some+other+string"
Output for 7.2.23
string(65) "class%40anonymous%00%2Fin%2F978e70x7f8023f86040+some+other+string"
Output for 7.2.22
string(65) "class%40anonymous%00%2Fin%2F978e70x7f53e48ce040+some+other+string"
Output for 7.2.21
string(65) "class%40anonymous%00%2Fin%2F978e70x7f73d0bc1040+some+other+string"
Output for 7.2.20
string(65) "class%40anonymous%00%2Fin%2F978e70x7fee5ee84040+some+other+string"
Output for 7.2.19
string(65) "class%40anonymous%00%2Fin%2F978e70x7fb5bc3c4040+some+other+string"
Output for 7.2.18
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe073dc9040+some+other+string"
Output for 7.2.17
string(65) "class%40anonymous%00%2Fin%2F978e70x7fd7b2382040+some+other+string"
Output for 7.2.16
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe5f025d040+some+other+string"
Output for 7.2.15
string(65) "class%40anonymous%00%2Fin%2F978e70x7f2bbb72d040+some+other+string"
Output for 7.2.14
string(65) "class%40anonymous%00%2Fin%2F978e70x7f7f52b85040+some+other+string"
Output for 7.2.13
string(65) "class%40anonymous%00%2Fin%2F978e70x7f76024e0040+some+other+string"
Output for 7.2.12
string(65) "class%40anonymous%00%2Fin%2F978e70x7fd861101040+some+other+string"
Output for 7.2.11
string(65) "class%40anonymous%00%2Fin%2F978e70x7f2170ba3040+some+other+string"
Output for 7.2.10
string(65) "class%40anonymous%00%2Fin%2F978e70x7fd7e85f3040+some+other+string"
Output for 7.2.9
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff9ff8f5040+some+other+string"
Output for 7.2.8
string(65) "class%40anonymous%00%2Fin%2F978e70x7f1fb27f3040+some+other+string"
Output for 7.2.7
string(65) "class%40anonymous%00%2Fin%2F978e70x7fae8b28e040+some+other+string"
Output for 7.2.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7f02fc8bd040+some+other+string"
Output for 7.2.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe031387040+some+other+string"
Output for 7.2.4
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe9e7eb2040+some+other+string"
Output for 7.2.3
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe15a234040+some+other+string"
Output for 7.2.2
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe4ac69e040+some+other+string"
Output for 7.2.1
string(65) "class%40anonymous%00%2Fin%2F978e70x7fa18de56040+some+other+string"
Output for 7.2.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7fafeb85c040+some+other+string"
Output for 7.1.33
string(65) "class%40anonymous%00%2Fin%2F978e70x7fec65736040+some+other+string"
Output for 7.1.32
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff17473d040+some+other+string"
Output for 7.1.31
string(65) "class%40anonymous%00%2Fin%2F978e70x7ffb6f05b040+some+other+string"
Output for 7.1.30
string(65) "class%40anonymous%00%2Fin%2F978e70x7f18ae4e8040+some+other+string"
Output for 7.1.29
string(65) "class%40anonymous%00%2Fin%2F978e70x7f94facf8040+some+other+string"
Output for 7.1.28
string(65) "class%40anonymous%00%2Fin%2F978e70x7fae4c3bf040+some+other+string"
Output for 7.1.27
string(65) "class%40anonymous%00%2Fin%2F978e70x7f3c71d05040+some+other+string"
Output for 7.1.26
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe32e30d040+some+other+string"
Output for 7.1.25
string(65) "class%40anonymous%00%2Fin%2F978e70x7f540d00b040+some+other+string"
Output for 7.1.24
string(65) "class%40anonymous%00%2Fin%2F978e70x7f744f355040+some+other+string"
Output for 7.1.23
string(65) "class%40anonymous%00%2Fin%2F978e70x7f7c51685040+some+other+string"
Output for 7.1.22
string(65) "class%40anonymous%00%2Fin%2F978e70x7f37cfd6d040+some+other+string"
Output for 7.1.21
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff991887040+some+other+string"
Output for 7.1.20
string(65) "class%40anonymous%00%2Fin%2F978e70x7fedcaa32040+some+other+string"
Output for 7.1.19
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4aba48a040+some+other+string"
Output for 7.1.18
string(65) "class%40anonymous%00%2Fin%2F978e70x7f546b05e040+some+other+string"
Output for 7.1.17
string(65) "class%40anonymous%00%2Fin%2F978e70x7ffb82015040+some+other+string"
Output for 7.1.16
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff76247d040+some+other+string"
Output for 7.1.15
string(65) "class%40anonymous%00%2Fin%2F978e70x7f302ea6d040+some+other+string"
Output for 7.1.14
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9f72130040+some+other+string"
Output for 7.1.13
string(65) "class%40anonymous%00%2Fin%2F978e70x7f5a58d57040+some+other+string"
Output for 7.1.12
string(65) "class%40anonymous%00%2Fin%2F978e70x7f5481ca4040+some+other+string"
Output for 7.1.11
string(65) "class%40anonymous%00%2Fin%2F978e70x7f690b596040+some+other+string"
Output for 7.1.10
string(65) "class%40anonymous%00%2Fin%2F978e70x7f314f107040+some+other+string"
Output for 7.1.9
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe7aa3fd040+some+other+string"
Output for 7.1.8
string(65) "class%40anonymous%00%2Fin%2F978e70x7f2361f6b040+some+other+string"
Output for 7.1.7
string(65) "class%40anonymous%00%2Fin%2F978e70x7f53310af040+some+other+string"
Output for 7.1.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7f34e0804040+some+other+string"
Output for 7.1.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7eff4628f040+some+other+string"
Output for 7.1.4
string(65) "class%40anonymous%00%2Fin%2F978e70x7fdf7feff040+some+other+string"
Output for 7.1.3
string(65) "class%40anonymous%00%2Fin%2F978e70x7f96fb55b040+some+other+string"
Output for 7.1.2
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff80454f040+some+other+string"
Output for 7.1.1
string(65) "class%40anonymous%00%2Fin%2F978e70x7f547e4dc040+some+other+string"
Output for 7.1.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7faa3633f040+some+other+string"
Output for 7.0.33
string(65) "class%40anonymous%00%2Fin%2F978e70x7f6bdc7b2040+some+other+string"
Output for 7.0.32
string(65) "class%40anonymous%00%2Fin%2F978e70x7f545de1c040+some+other+string"
Output for 7.0.31
string(65) "class%40anonymous%00%2Fin%2F978e70x7ffbc7856040+some+other+string"
Output for 7.0.30
string(65) "class%40anonymous%00%2Fin%2F978e70x7f812dade040+some+other+string"
Output for 7.0.29
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff9333fd040+some+other+string"
Output for 7.0.28
string(65) "class%40anonymous%00%2Fin%2F978e70x7f03dfe3c040+some+other+string"
Output for 7.0.27
string(65) "class%40anonymous%00%2Fin%2F978e70x7fecd6bb1040+some+other+string"
Output for 7.0.26
string(65) "class%40anonymous%00%2Fin%2F978e70x7f26defc7040+some+other+string"
Output for 7.0.25
string(65) "class%40anonymous%00%2Fin%2F978e70x7fc507b01040+some+other+string"
Output for 7.0.24
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9820009040+some+other+string"
Output for 7.0.23
string(65) "class%40anonymous%00%2Fin%2F978e70x7f60eb77c040+some+other+string"
Output for 7.0.22
string(65) "class%40anonymous%00%2Fin%2F978e70x7fcde36c3040+some+other+string"
Output for 7.0.21
string(65) "class%40anonymous%00%2Fin%2F978e70x7fdd889d2040+some+other+string"
Output for 7.0.20
string(65) "class%40anonymous%00%2Fin%2F978e70x7f868da24040+some+other+string"
Output for 7.0.19
string(65) "class%40anonymous%00%2Fin%2F978e70x7f747ed31040+some+other+string"
Output for 7.0.18
string(65) "class%40anonymous%00%2Fin%2F978e70x7fd3fe03f040+some+other+string"
Output for 7.0.17
string(65) "class%40anonymous%00%2Fin%2F978e70x7fc5de4e4040+some+other+string"
Output for 7.0.16
string(65) "class%40anonymous%00%2Fin%2F978e70x7f962a914040+some+other+string"
Output for 7.0.15
string(65) "class%40anonymous%00%2Fin%2F978e70x7f25806ea040+some+other+string"
Output for 7.0.14
string(65) "class%40anonymous%00%2Fin%2F978e70x7f077c721040+some+other+string"
Output for 7.0.13
string(65) "class%40anonymous%00%2Fin%2F978e70x7fbe5ab9c040+some+other+string"
Output for 7.0.12
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4f32eba040+some+other+string"
Output for 7.0.11
string(65) "class%40anonymous%00%2Fin%2F978e70x7f19c96e3040+some+other+string"
Output for 7.0.10
string(65) "class%40anonymous%00%2Fin%2F978e70x7f71e4df3040+some+other+string"
Output for 7.0.9
string(65) "class%40anonymous%00%2Fin%2F978e70x7f6883f60040+some+other+string"
Output for 7.0.8
string(65) "class%40anonymous%00%2Fin%2F978e70x7f77b22f4040+some+other+string"
Output for 7.0.7
string(65) "class%40anonymous%00%2Fin%2F978e70x7f6c54608040+some+other+string"
Output for 7.0.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7f8663179040+some+other+string"
Output for 7.0.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe4b811a040+some+other+string"
Output for 7.0.4
string(65) "class%40anonymous%00%2Fin%2F978e70x7f86314b1040+some+other+string"
Output for 7.0.3
string(65) "class%40anonymous%00%2Fin%2F978e70x7f655f578040+some+other+string"
Output for 7.0.2
string(65) "class%40anonymous%00%2Fin%2F978e70x7f7a382ea040+some+other+string"
Output for 7.0.1
string(65) "class%40anonymous%00%2Fin%2F978e70x7f181f560040+some+other+string"
Output for 7.0.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7fab550ec040+some+other+string"
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/978e7 on line 3
Process exited with code 255.

preferences:
311.53 ms | 402 KiB | 326 Q