3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.93 ms | 1436 KiB | 15 Q