3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo strtr(base_convert($entity->getId(), 10, 20), '0123456789abcdefghij', '7TDC34LHNKQJ89RXMSFP');
based on N6cr9
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: entity in /in/6dAWd on line 3 Fatal error: Uncaught Error: Call to a member function getId() on null in /in/6dAWd:3 Stack trace: #0 {main} thrown in /in/6dAWd on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: entity in /in/6dAWd on line 3 Fatal error: Uncaught Error: Call to a member function getId() on unknown in /in/6dAWd:3 Stack trace: #0 {main} thrown in /in/6dAWd on line 3
Process exited with code 255.
Output for 5.6.8 - 5.6.28
Notice: Undefined variable: entity in /in/6dAWd on line 3 Fatal error: Call to a member function getId() on null in /in/6dAWd on line 3
Process exited with code 255.
Output for 5.3.19 - 5.5.35
Notice: Undefined variable: entity in /in/6dAWd on line 3 Fatal error: Call to a member function getId() on a non-object in /in/6dAWd on line 3
Process exited with code 255.