3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //html <form id="download_form" method="post" action="<?= admin_url('admin-ajax.php') ?>" class="selected-action"> <input type="hidden" name="<?= THEME_NONCE_NAME ?>" value="<?= wp_create_nonce(THEME_NONCE_ACTION) ?>"> <input type="hidden" name="action" value="resume_download" /> <input type="hidden" name="company_id" value="<?php echo $company_id ?>" /> <input type="hidden" id="resumes_arr" name="resumes" value="" /> <button class="downloads"><?php _e('Download my selection of CV', 'hec'); ?></button> </form> //js $(".downloads").click(function () { var resumes = [], table = $('table > tbody > tr'); table.each(function () { var resume_id = $(this).attr('data-id'); if ($(this).hasClass('selected')) { resumes.push(resume_id); } }); var string_resumes = resumes.toString(); $('#resumes_arr').val(string_resumes); $('#download_form').submit(); });
Output for 7.0.0 - 7.1.7
Parse error: syntax error, unexpected '<', expecting end of file in /in/NkHXf on line 4
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected '<', expecting $end in /in/NkHXf:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected '<' in /in/NkHXf on line 4
Process exited with code 255.