3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrValue = array('first', 'second'); $ret = in_array(0, $arrValue); $ret2 = (0 == 'first') || (0 == 'second'); var_dump($ret); var_dump($ret2); var_dump($arrValue); ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TtKAK
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arrValue, !1 = $ret, !2 = $ret2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 0
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        ASSIGN                                                   !2, <false>
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.17 ms | 1394 KiB | 17 Q