3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = [ "id_message" => NULL, "fk_template" => 13, "fk_user" => "16", "from_name" => NULL, "from_email" => NULL, "to_name" => "Tha�s Amanda de Sousa", "to_email" => "thaisamanda.mendes@hotmail.com", "body_text" => NULL, "body_html" => NULL, "subject" => "Tha�s Amanda de Sousa, diz aí o que você achou do Bob's Fã!", "status" => NULL, "priority" => 2, "date_create" => NULL, "date_send" => NULL, "date_clicked" => NULL, "date_opened" => NULL, "count_clicked" => NULL, "response" => NULL, "post_back" => "ClienteMisterioso", "transport" => NULL, "params" => NULL, "transaction_id" => NULL, ]; var_dump($m, json_encode($m)); var_dump(json_decode(json_encode((array)$m), JSON_OBJECT_AS_ARRAY));
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
array(22) { ["id_message"]=> NULL ["fk_template"]=> int(13) ["fk_user"]=> string(2) "16" ["from_name"]=> NULL ["from_email"]=> NULL ["to_name"]=> string(23) "Tha�s Amanda de Sousa" ["to_email"]=> string(30) "thaisamanda.mendes@hotmail.com" ["body_text"]=> NULL ["body_html"]=> NULL ["subject"]=> string(64) "Tha�s Amanda de Sousa, diz aí o que você achou do Bob's Fã!" ["status"]=> NULL ["priority"]=> int(2) ["date_create"]=> NULL ["date_send"]=> NULL ["date_clicked"]=> NULL ["date_opened"]=> NULL ["count_clicked"]=> NULL ["response"]=> NULL ["post_back"]=> string(17) "ClienteMisterioso" ["transport"]=> NULL ["params"]=> NULL ["transaction_id"]=> NULL } string(519) "{"id_message":null,"fk_template":13,"fk_user":"16","from_name":null,"from_email":null,"to_name":"Tha\ufffds Amanda de Sousa","to_email":"thaisamanda.mendes@hotmail.com","body_text":null,"body_html":null,"subject":"Tha\ufffds Amanda de Sousa, diz a\u00ed o que voc\u00ea achou do Bob's F\u00e3!","status":null,"priority":2,"date_create":null,"date_send":null,"date_clicked":null,"date_opened":null,"count_clicked":null,"response":null,"post_back":"ClienteMisterioso","transport":null,"params":null,"transaction_id":null}" array(22) { ["id_message"]=> NULL ["fk_template"]=> int(13) ["fk_user"]=> string(2) "16" ["from_name"]=> NULL ["from_email"]=> NULL ["to_name"]=> string(23) "Tha�s Amanda de Sousa" ["to_email"]=> string(30) "thaisamanda.mendes@hotmail.com" ["body_text"]=> NULL ["body_html"]=> NULL ["subject"]=> string(64) "Tha�s Amanda de Sousa, diz aí o que você achou do Bob's Fã!" ["status"]=> NULL ["priority"]=> int(2) ["date_create"]=> NULL ["date_send"]=> NULL ["date_clicked"]=> NULL ["date_opened"]=> NULL ["count_clicked"]=> NULL ["response"]=> NULL ["post_back"]=> string(17) "ClienteMisterioso" ["transport"]=> NULL ["params"]=> NULL ["transaction_id"]=> NULL }

preferences:
242.09 ms | 411 KiB | 284 Q