3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $class = get_class(new class extends stdclass {}); var_dump($class); var_dump(urlencode($class));
based on SSoYl
Output for 7.2.0
string(39) "class@anonymous/in/QUKpV0x7f022b953036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f022b953036"
Output for 7.1.10
string(39) "class@anonymous/in/QUKpV0x7f0c6f578036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f0c6f578036"
Output for 7.1.7
string(39) "class@anonymous/in/QUKpV0x7f7ab4c39036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f7ab4c39036"
Output for 7.1.6
string(39) "class@anonymous/in/QUKpV0x7face7b65036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7face7b65036"
Output for 7.1.5
string(39) "class@anonymous/in/QUKpV0x7f4bb48d7036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f4bb48d7036"
Output for 7.1.0
string(39) "class@anonymous/in/QUKpV0x7f26588e9036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f26588e9036"
Output for 7.0.20
string(39) "class@anonymous/in/QUKpV0x7f7738f1a036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f7738f1a036"
Output for 7.0.8
string(39) "class@anonymous/in/QUKpV0x7fc1be956036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7fc1be956036"
Output for 7.0.7
string(39) "class@anonymous/in/QUKpV0x7ff7d0760036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7ff7d0760036"
Output for 7.0.6
string(39) "class@anonymous/in/QUKpV0x7f0b99dff036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f0b99dff036"
Output for 7.0.5
string(39) "class@anonymous/in/QUKpV0x7fd2dcdb8036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7fd2dcdb8036"
Output for 7.0.4
string(39) "class@anonymous/in/QUKpV0x7f6a1c730036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f6a1c730036"
Output for 7.0.3
string(39) "class@anonymous/in/QUKpV0x7f2f743de036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f2f743de036"
Output for 7.0.2
string(39) "class@anonymous/in/QUKpV0x7f2b85c74036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f2b85c74036"
Output for 7.0.1
string(39) "class@anonymous/in/QUKpV0x7f30a0cf7036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7f30a0cf7036"
Output for 7.0.0
string(39) "class@anonymous/in/QUKpV0x7fc6b6009036" string(47) "class%40anonymous%00%2Fin%2FQUKpV0x7fc6b6009036"
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/QUKpV on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/QUKpV on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/QUKpV on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /in/QUKpV on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in /in/QUKpV on line 3
Process exited with code 255.