3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
array(3) { ["query"]=> string(72) "INSERT INTO `tablename` (`column1`, `column2`, `column3`) VALUES (?,?,?)" ["data_types"]=> string(3) "sss" ["values"]=> array(3) { [0]=> string(4) "NULL" [1]=> string(5) " 'v1'" [2]=> string(6) " 'v2')" } } array(3) { ["query"]=> string(76) "INSERT INTO `tablename` (`column1`, `column2`, `column3`) VALUES (NOW(?,?,?)" ["data_types"]=> string(3) "sss" ["values"]=> array(3) { [0]=> string(1) ")" [1]=> string(5) " 'v1'" [2]=> string(6) " 'v2')" } } array(3) { ["query"]=> string(76) "INSERT INTO `tablename` (`column1`, `column2`, `column3`) VALUES (?,?,?,?,?)" ["data_types"]=> string(5) "sssss" ["values"]=> array(5) { [0]=> string(5) "'test" [1]=> string(4) "with" [2]=> string(7) "commas'" [3]=> string(5) " 'v1'" [4]=> string(6) " 'v2')" } } array(3) { ["query"]=> string(72) "INSERT INTO `tablename` (`column1`, `column2`, `column3`) VALUES (?,?,?)" ["data_types"]=> string(3) "sss" ["values"]=> array(3) { [0]=> string(4) "'v0'" [1]=> string(5) " 'v1'" [2]=> string(47) " 'v2') ON DUPLICATE KEY UPDATE `column2` = 'v2'" } }

preferences:
160.79 ms | 415 KiB | 5 Q