3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_search('z', range(0,5), true)); var_dump(in_array('z', range(0,5), true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JYCqi
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 'z'
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 5
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    3    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'in_array'
         14        SEND_VAL                                                 'z'
         15        INIT_FCALL                                               'range'
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 5
         18        DO_ICALL                                         $3      
         19        SEND_VAR                                                 $3
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.31 ms | 1395 KiB | 21 Q