3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dec = 5; $input = decbin($dec); echo str_pad($input, 24, "-=", STR_PAD_LEFT)
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.23, 7.0.0 - 7.0.8
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/orSlZ on line 5
Process exited with code 255.

preferences:
190 ms | 1395 KiB | 77 Q