3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userPages=[ 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[array_rand($userPages)]; echo json_decode($data)->pk.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/JcQea
function name:  (null)
number of ops:  18
compiled vars:  !0 = $userPages, !1 = $i, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->15
   11     3    >   INIT_FCALL                                               'array_rand'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        FETCH_DIM_R                                      ~6      !0, $5
          7        ASSIGN                                                   !2, ~6
   12     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        FETCH_OBJ_R                                      ~9      $8, 'pk'
         12        CONCAT                                           ~10     ~9, '%0A'
         13        ECHO                                                     ~10
   10    14        PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 10
         16      > JMPNZ                                                    ~12, ->3
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1016 KiB | 15 Q