3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [3,4,5,6,7,1,2,3]; $a = 50; $pos = array_search(max($arr), $b); var_dump($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xlf7R
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $a, !2 = $pos, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 50
    5     2        INIT_FCALL                                               'array_search'
          3        INIT_FCALL                                               'max'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1394 KiB | 19 Q