3v4l.org

run code in 300+ PHP versions simultaneously
<?php $(".add-favorites").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); } }); if (typeof resumes !== 'undefined' && resumes.length > 0) { var company_id = $(this).attr('data-company'); $.post(AJAX_URL, { action: 'add_favorites', token: THEME_NONCE_ACTION, resumes: resumes, company_id: company_id }, function (data) { if (data.error) { alert('Error: Company ID empty'); } if (data.success) { alert('Success'); } //обнулить значения selected }) .fail(function () { alert('Server error'); }); } else { alert('Nothing selected'); } });

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.0090.01116.76
7.1.60.0210.02434.73
7.1.50.0770.01632.56
7.1.40.0360.00934.45
7.1.30.0260.02034.39
7.1.20.0290.02334.45
7.1.10.0090.01016.51
7.1.00.0100.00716.30
7.0.200.0040.01116.31
7.0.190.0160.00316.63
7.0.180.0000.01816.13
7.0.170.0050.01415.84
7.0.160.0400.01316.02
7.0.150.0050.01715.97
7.0.140.0040.01516.10
7.0.130.0070.01416.45
7.0.120.0530.00416.44
7.0.110.0100.01016.02
7.0.100.0380.01414.29
7.0.90.0030.01515.87
7.0.80.0140.00716.06
7.0.70.0070.01216.18
7.0.60.0450.01115.98
7.0.50.0110.00816.25
7.0.40.0070.01416.21
7.0.30.0040.01716.27
7.0.20.0100.01016.33
7.0.10.0110.00716.22
7.0.00.0030.01616.27

preferences:
140.36 ms | 1394 KiB | 7 Q