3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Seen = array(array("UserID" => 3, "Timestamp" => 45678956)); foreach($Seen as &$Entr) { $Entr = $Entr["UserID"]."~".$Entr["Timestamp"]; } $Seen = count($Seen) > 0 ? "µ".implode("µµ", $Seen)."µ" : "+++++"; $Deleted = array(); foreach($Deleted as &$Entr) { $Entr = $Entr["UserID"]."~".$Entr["Timestamp"]; } $Deleted = count($Deleted) > 0 ? "µ".implode("µµ", $Deleted)."µ" : "----"; print_r(array($Seen, $Deleted));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 125) Position 1 = 25, Position 2 = 32
Branch analysis from position: 25
2 jumps found. (Code = 126) Position 1 = 26, Position 2 = 32
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 44
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 21
2 jumps found. (Code = 125) Position 1 = 25, Position 2 = 32
Branch analysis from position: 25
Branch analysis from position: 32
Branch analysis from position: 9
filename:       /in/W4pfk
function name:  (null)
number of ops:  52
compiled vars:  !0 = $Seen, !1 = $Entr, !2 = $Deleted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1      > FE_RESET_RW                                      $4      !0, ->9
          2    > > FE_FETCH_RW                                              $4, !1, ->9
    5     3    >   FETCH_DIM_R                                      ~5      !1, 'UserID'
          4        CONCAT                                           ~6      ~5, '%7E'
          5        FETCH_DIM_R                                      ~7      !1, 'Timestamp'
          6        CONCAT                                           ~8      ~6, ~7
          7        ASSIGN                                                   !1, ~8
    3     8      > JMP                                                      ->2
          9    >   FE_FREE                                                  $4
    7    10        COUNT                                            ~10     !0
         11        IS_SMALLER                                               0, ~10
         12      > JMPZ                                                     ~11, ->21
         13    >   INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%C2%B5%C2%B5'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $12     
         17        CONCAT                                           ~13     '%C2%B5', $12
         18        CONCAT                                           ~14     ~13, '%C2%B5'
         19        QM_ASSIGN                                        ~15     ~14
         20      > JMP                                                      ->22
         21    >   QM_ASSIGN                                        ~15     '%2B%2B%2B%2B%2B'
         22    >   ASSIGN                                                   !0, ~15
    9    23        ASSIGN                                                   !2, <array>
   10    24      > FE_RESET_RW                                      $18     !2, ->32
         25    > > FE_FETCH_RW                                              $18, !1, ->32
   12    26    >   FETCH_DIM_R                                      ~19     !1, 'UserID'
         27        CONCAT                                           ~20     ~19, '%7E'
         28        FETCH_DIM_R                                      ~21     !1, 'Timestamp'
         29        CONCAT                                           ~22     ~20, ~21
         30        ASSIGN                                                   !1, ~22
   10    31      > JMP                                                      ->25
         32    >   FE_FREE                                                  $18
   14    33        COUNT                                            ~24     !2
         34        IS_SMALLER                                               0, ~24
         35      > JMPZ                                                     ~25, ->44
         36    >   INIT_FCALL                                               'implode'
         37        SEND_VAL                                                 '%C2%B5%C2%B5'
         38        SEND_VAR                                                 !2
         39        DO_ICALL                                         $26     
         40        CONCAT                                           ~27     '%C2%B5', $26
         41        CONCAT                                           ~28     ~27, '%C2%B5'
         42        QM_ASSIGN                                        ~29     ~28
         43      > JMP                                                      ->45
         44    >   QM_ASSIGN                                        ~29     '----'
         45    >   ASSIGN                                                   !2, ~29
   16    46        INIT_FCALL                                               'print_r'
         47        INIT_ARRAY                                       ~31     !0
         48        ADD_ARRAY_ELEMENT                                ~31     !2
         49        SEND_VAL                                                 ~31
         50        DO_ICALL                                                 
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.04 ms | 1405 KiB | 17 Q