timer - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of timer.php

  1. <?php
  2.  
  3.  
  4. $test = json_decode("[\"{\\\"answer\\\":{\\\"1\\\":\\\"1\\\",\\\"2\\\":\\\"1\\\",\\\"3\\\":\\\"2\\\",\\\"4\\\":\\\"1\\\",\\\"5\\\":\\\"3\\\",\\\"6\\\":\\\"3\\\",\\\"7\\\":\\\"2\\\",\\\"8\\\":\\\"2\\\",\\\"9\\\":\\\"2\\\",\\\"10\\\":\\\"3\\\"},\\\"timer\\\":\\\"00:11:57\\\"}\"]", true);
  5. $test2 = json_decode($test[0], true);
  6. var_dump($test2['timer']);
File Description
  • timer
  • PHP Code
  • 28 Dec-2022
  • 359 Bytes
You can Share it: