3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(urlencode(get_class(new class extends stdClass {}) . " some other string"));
based on 0EdFe
Output for 7.2.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4681cab040+some+other+string"
Output for 7.1.10
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9eedbd2040+some+other+string"
Output for 7.1.7
string(65) "class%40anonymous%00%2Fin%2F978e70x7fa4a9897040+some+other+string"
Output for 7.1.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7ff1b320e040+some+other+string"
Output for 7.1.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4df1b10040+some+other+string"
Output for 7.1.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7f3b58cca040+some+other+string"
Output for 7.0.20
string(65) "class%40anonymous%00%2Fin%2F978e70x7f892dbfc040+some+other+string"
Output for 7.0.6
string(65) "class%40anonymous%00%2Fin%2F978e70x7effb6066040+some+other+string"
Output for 7.0.5
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4bb860a040+some+other+string"
Output for 7.0.4
string(65) "class%40anonymous%00%2Fin%2F978e70x7f9e56a4d040+some+other+string"
Output for 7.0.3
string(65) "class%40anonymous%00%2Fin%2F978e70x7f4aa1e3b040+some+other+string"
Output for 7.0.2
string(65) "class%40anonymous%00%2Fin%2F978e70x7f2cd99ed040+some+other+string"
Output for 7.0.1
string(65) "class%40anonymous%00%2Fin%2F978e70x7fe9956bc040+some+other+string"
Output for 7.0.0
string(65) "class%40anonymous%00%2Fin%2F978e70x7fbd87639040+some+other+string"
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/978e7 on line 3
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/978e7 on line 3
Process exited with code 255.