3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matchVal = array(); $nowScore = 1; $matchVal[$nowScore] = array(); $nowScore = 4; $matchVal[$nowScore] = array(); ksort($matchVal); foreach($matchVal as $key => $val) { print($key." --> ".$val); } php?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/SBjsE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $matchVal, !1 = $nowScore, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 1
    4     2        ASSIGN_DIM                                               !0, !1
          3        OP_DATA                                                  <array>
    5     4        ASSIGN                                                   !1, 4
    6     5        ASSIGN_DIM                                               !0, !1
          6        OP_DATA                                                  <array>
    7     7        INIT_FCALL                                               'ksort'
          8        SEND_REF                                                 !0
          9        DO_ICALL                                                 
    9    10      > FE_RESET_R                                       $10     !0, ->17
         11    > > FE_FETCH_R                                       ~11     $10, !2, ->17
         12    >   ASSIGN                                                   !3, ~11
   11    13        CONCAT                                           ~13     !3, '+--%3E+'
         14        CONCAT                                           ~14     ~13, !2
         15        ECHO                                                     ~14
    9    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $10
   13    18        FETCH_CONSTANT                                   ~15     'php'
         19        FREE                                                     ~15
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1399 KiB | 15 Q