3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.63 ms | 1400 KiB | 17 Q