3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sql = 'SELECT ff.id AS field_id, c.id AS calculation_id, c.answer AS calculation_answer, c.operation AS calculation_operation, c.value AS calculation_value, c.variable AS calculation_variable FROM calculations c RIGHT JOIN form_field ff ON ff.id = c.field_id INNER JOIN form f ON f.id = ff.form_id AND f.id = :form_id'; echo $sql;
based on nTQHb
Output for 4.3.0 - 7.2.0
SELECT ff.id AS field_id, c.id AS calculation_id, c.answer AS calculation_answer, c.operation AS calculation_operation, c.value AS calculation_value, c.variable AS calculation_variable FROM calculations c RIGHT JOIN form_field ff ON ff.id = c.field_id INNER JOIN form f ON f.id = ff.form_id AND f.id = :form_id