3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.38 ms | 1394 KiB | 19 Q