3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "SELECT s.SEQSIT as ID, " . "s.GEOMETRY.get_wkt() AS POLY " . "FROM TRANPOST.SITE s " . "WHERE s.GEOMETRY.get_wkt() IS NOT NULL " . "AND SDO_RELATE(s.GEOMETRY, " . "2003, NULL, NULL, " . "SDO_ELEM_INFO_ARRAY(1,1003,3), " . "SDO_ORDINATE_ARRAY(:LatNE,:LongNE,:LatSW,:LongSW)), " . "'mask=anyinteract') = 'TRUE'";
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SELECT s.SEQSIT as ID, s.GEOMETRY.get_wkt() AS POLY FROM TRANPOST.SITE s WHERE s.GEOMETRY.get_wkt() IS NOT NULL AND SDO_RELATE(s.GEOMETRY, 2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,3), SDO_ORDINATE_ARRAY(:LatNE,:LongNE,:LatSW,:LongSW)), 'mask=anyinteract') = 'TRUE'