3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userPages = array_values([ 0 => '{"pk":"1","username":".....","full_name":".....","is_private":true}', 8 => '{"pk":"2","username":".....","full_name":".....","is_private":true}', 12 => '{"pk":"3","username":".....","full_name":".....","is_private":true}', 64 => '{"pk":"4","username":".....","full_name":".....","is_private":true}' ]); for ($i=0; $i < 10; $i++) { $data = $userPages[rand(0, count($userPages)- 1)]; echo json_decode($data)->pk.PHP_EOL; }

preferences:
40.64 ms | 406 KiB | 5 Q