3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['nim'] = 'Hrllo'; $_POST['nama'] = 'Data'; $_POST['score'] = '33'; $_SESSION['nim'][] = $_POST['nim']; $_SESSION['nama'][] = $_POST['nama']; $_SESSION['score'][] = $_POST['score']; $string = ''; foreach($_SESSION as $main_key => $key) { foreach($key as $data => $value) { $string .= $main_key . ":" . $value . ' '; } } $string = rtrim($string, ' '); echo $string;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 42
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 42
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 40
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 40
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/CcOOK
function name:  (null)
number of ops:  50
compiled vars:  !0 = $string, !1 = $key, !2 = $main_key, !3 = $value, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $5      '_POST'
          1        ASSIGN_DIM                                               $5, 'nim'
          2        OP_DATA                                                  'Hrllo'
    4     3        FETCH_W                      global              $7      '_POST'
          4        ASSIGN_DIM                                               $7, 'nama'
          5        OP_DATA                                                  'Data'
    5     6        FETCH_W                      global              $9      '_POST'
          7        ASSIGN_DIM                                               $9, 'score'
          8        OP_DATA                                                  '33'
    7     9        FETCH_R                      global              ~14     '_POST'
         10        FETCH_DIM_R                                      ~15     ~14, 'nim'
         11        FETCH_W                      global              $11     '_SESSION'
         12        FETCH_DIM_W                                      $12     $11, 'nim'
         13        ASSIGN_DIM                                               $12
         14        OP_DATA                                                  ~15
    8    15        FETCH_R                      global              ~19     '_POST'
         16        FETCH_DIM_R                                      ~20     ~19, 'nama'
         17        FETCH_W                      global              $16     '_SESSION'
         18        FETCH_DIM_W                                      $17     $16, 'nama'
         19        ASSIGN_DIM                                               $17
         20        OP_DATA                                                  ~20
    9    21        FETCH_R                      global              ~24     '_POST'
         22        FETCH_DIM_R                                      ~25     ~24, 'score'
         23        FETCH_W                      global              $21     '_SESSION'
         24        FETCH_DIM_W                                      $22     $21, 'score'
         25        ASSIGN_DIM                                               $22
         26        OP_DATA                                                  ~25
   12    27        ASSIGN                                                   !0, ''
   13    28        FETCH_R                      global              ~27     '_SESSION'
         29      > FE_RESET_R                                       $28     ~27, ->42
         30    > > FE_FETCH_R                                       ~29     $28, !1, ->42
         31    >   ASSIGN                                                   !2, ~29
   15    32      > FE_RESET_R                                       $31     !1, ->40
         33    > > FE_FETCH_R                                       ~32     $31, !3, ->40
         34    >   ASSIGN                                                   !4, ~32
   17    35        CONCAT                                           ~34     !2, '%3A'
         36        CONCAT                                           ~35     ~34, !3
         37        CONCAT                                           ~36     ~35, '+'
         38        ASSIGN_OP                                     8          !0, ~36
   15    39      > JMP                                                      ->33
         40    >   FE_FREE                                                  $31
   13    41      > JMP                                                      ->30
         42    >   FE_FREE                                                  $28
   21    43        INIT_FCALL                                               'rtrim'
         44        SEND_VAR                                                 !0
         45        SEND_VAL                                                 '+'
         46        DO_ICALL                                         $38     
         47        ASSIGN                                                   !0, $38
   22    48        ECHO                                                     !0
         49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.02 ms | 1411 KiB | 15 Q