3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $rng = range(0,5); var_dump($rng); var_dump(array_search('z', range(0,5))); var_dump(in_array('z', range(0,5)));
based on f0e3g
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/h8kXf
function name:  (null)
number of ops:  31
compiled vars:  !0 = $rng
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'range'
         1        SEND_VAL                                                 0
         2        SEND_VAL                                                 5
         3        DO_ICALL                                         $1      
         4        ASSIGN                                                   !0, $1
   3     5        INIT_FCALL                                               'var_dump'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                                 
   4     8        INIT_FCALL                                               'var_dump'
         9        INIT_FCALL                                               'array_search'
        10        SEND_VAL                                                 'z'
        11        INIT_FCALL                                               'range'
        12        SEND_VAL                                                 0
        13        SEND_VAL                                                 5
        14        DO_ICALL                                         $4      
        15        SEND_VAR                                                 $4
        16        DO_ICALL                                         $5      
        17        SEND_VAR                                                 $5
        18        DO_ICALL                                                 
   5    19        INIT_FCALL                                               'var_dump'
        20        INIT_FCALL                                               'in_array'
        21        SEND_VAL                                                 'z'
        22        INIT_FCALL                                               'range'
        23        SEND_VAL                                                 0
        24        SEND_VAL                                                 5
        25        DO_ICALL                                         $7      
        26        SEND_VAR                                                 $7
        27        DO_ICALL                                         $8      
        28        SEND_VAR                                                 $8
        29        DO_ICALL                                                 
        30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0