3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $son3 = mktime(0, 0, 0, date("m") , date("d"), date("Y")); $son4 = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));// günlük necdet ekledi $son5 = mktime(0, 0, 0, date("m")+1 , date("d"), date("Y"));// aylık necdet ekledi $son6 = mktime(0, 0, 0, date("m") , date("d"), date("Y")+1);// yıllık necdet ekledi echo date("\nd/m/Y",$son3); echo date("\nd/m/Y",$son4); echo date("\nd/m/Y",$son5); echo date("\nd/m/Y",$son6); echo "\n"; $sorgu_alt = select_data_tekrar("new_sale_tab", "*", "WHERE durum_id = 24 AND time > $son3 AND time < $son6", "ORDER BY id DESC " ); function select_data_tekrar($tablo_adi, $secilecekler, $filtre, $ek ){ $sorgu = "SELECT ".$secilecekler." FROM ".$tablo_adi." ".$filtre." ".$ek.";"; echo $sorgu; $islem = mysql_query($sorgu); return $islem; }
based on LM4m4
Output for 7.0.0 - 7.2.0
18/11/2015 19/11/2015 18/12/2015 18/11/2016 SELECT * FROM new_sale_tab WHERE durum_id = 24 AND time > 1447801200 AND time < 1479423600 ORDER BY id DESC ; Fatal error: Uncaught Error: Call to undefined function mysql_query() in /in/n4eW5:24 Stack trace: #0 /in/n4eW5(20): select_data_tekrar('new_sale_tab', '*', 'WHERE durum_id ...', 'ORDER BY id DES...') #1 {main} thrown in /in/n4eW5 on line 24
Process exited with code 255.
Output for 5.5.0 - 5.6.28
18/11/2015 19/11/2015 18/12/2015 18/11/2016 SELECT * FROM new_sale_tab WHERE durum_id = 24 AND time > 1447801200 AND time < 1479423600 ORDER BY id DESC ; Fatal error: Call to undefined function mysql_query() in /in/n4eW5 on line 24
Process exited with code 255.