3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = array(10,11,15,17,18,21,24,26,41,50); $winner = array(2,10,15,17,19,21,22,28,35,50); $match = 0; foreach($winner as $number){ $x = array_search($number, $user, true); if($x !== false){ $user[$x] = "<span style=\"color:green;\">".$user[$x]."</span>"; $match++; } } echo '<pre>'; print_r($user); echo $match;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/kZkXP
function name:  (null)
number of ops:  27
compiled vars:  !0 = $user, !1 = $winner, !2 = $match, !3 = $number, !4 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 0
    6     3      > FE_RESET_R                                       $8      !1, ->20
          4    > > FE_FETCH_R                                               $8, !3, ->20
    7     5    >   INIT_FCALL                                               'array_search'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !4, $9
    8    11        TYPE_CHECK                                  1018          !4
         12      > JMPZ                                                     ~11, ->19
    9    13    >   FETCH_DIM_R                                      ~13     !0, !4
         14        CONCAT                                           ~14     '%3Cspan+style%3D%22color%3Agreen%3B%22%3E', ~13
         15        CONCAT                                           ~15     ~14, '%3C%2Fspan%3E'
         16        ASSIGN_DIM                                               !0, !4
         17        OP_DATA                                                  ~15
   10    18        PRE_INC                                                  !2
    6    19    > > JMP                                                      ->4
         20    >   FE_FREE                                                  $8
   13    21        ECHO                                                     '%3Cpre%3E'
   14    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   15    25        ECHO                                                     !2
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1012 KiB | 15 Q