3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '"shop_id":"vb-test-0023","shop_transaction_id":1003786,"gross":20.99,"currency":"USD","reccuring":1,"email":"test@mail.com","desc":"Premium Account (type A) purchase","ip":"127.0.0.1","geo_country":"USA","geo_city":"Newark","user_name":"John Doe","lang":"en","subscription_desc":"Monthly autosubscription is enabled","success_Url":"http:\/\/vb.com\/purchase-callback\/genesis-success","fail_Url":"http:\/\/vb.com\/purchase-callback\/genesis-fail","callback_url":"http:\/\/vb.com\/purchase-callback\/genesis-status","sign":"3r7j6Gie5gmHUO09hXp3v\/in04Q="' ; echo http_build_query((array)json_decode($str));
Output for 5.2.0, 5.2.9 - 7.1.0
Output for 5.2.1 - 5.2.8
0=shop_id%22%3A%22vb-test-0023%22%2C%22shop_transaction_id%22%3A1003786%2C%22gross%22%3A20.99%2C%22currency%22%3A%22USD%22%2C%22reccuring%22%3A1%2C%22email%22%3A%22test%40mail.com%22%2C%22desc%22%3A%22Premium+Account+%28type+A%29+purchase%22%2C%22ip%22%3A%22127.0.0.1%22%2C%22geo_country%22%3A%22USA%22%2C%22geo_city%22%3A%22Newark%22%2C%22user_name%22%3A%22John+Doe%22%2C%22lang%22%3A%22en%22%2C%22subscription_desc%22%3A%22Monthly+autosubscription+is+enabled%22%2C%22success_Url%22%3A%22http%3A%5C%2F%5C%2Fvb.com%5C%2Fpurchase-callback%5C%2Fgenesis-success%22%2C%22fail_Url%22%3A%22http%3A%5C%2F%5C%2Fvb.com%5C%2Fpurchase-callback%5C%2Fgenesis-fail%22%2C%22callback_url%22%3A%22http%3A%5C%2F%5C%2Fvb.com%5C%2Fpurchase-callback%5C%2Fgenesis-status%22%2C%22sign%22%3A%223r7j6Gie5gmHUO09hXp3v%5C%2Fin04Q%3D
Output for 5.0.0 - 5.1.6
<br /> <b>Fatal error</b>: Call to undefined function json_decode() in <b>/in/0IRXN</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: http_build_query() in <b>/in/0IRXN</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: http_build_query() in <b>/in/0IRXN</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: http_build_query() in <b>/in/0IRXN</b> on line <b>4</b><br />