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; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 6
Branch analysis from position: 23
Branch analysis from position: 6
filename:       /in/2HWcG
function name:  (null)
number of ops:  24
compiled vars:  !0 = $userPages, !1 = $i, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_values'
    4     1        SEND_VAL                                                 <array>
    3     2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
   10     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->21
   11     6    >   INIT_FCALL                                               'rand'
          7        SEND_VAL                                                 0
          8        COUNT                                            ~6      !0
          9        SUB                                              ~7      ~6, 1
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        FETCH_DIM_R                                      ~9      !0, $8
         13        ASSIGN                                                   !2, ~9
   12    14        INIT_FCALL                                               'json_decode'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $11     
         17        FETCH_OBJ_R                                      ~12     $11, 'pk'
         18        CONCAT                                           ~13     ~12, '%0A'
         19        ECHO                                                     ~13
   10    20        PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 10
         22      > JMPNZ                                                    ~15, ->6
   13    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.95 ms | 1018 KiB | 16 Q