3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.02 ms | 1394 KiB | 15 Q