3v4l.org

run code in 300+ PHP versions simultaneously
<?php $w = date("w"); $array = array( 0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 5 ); if(in_array($w, $array)) { }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/10B5A
function name:  (null)
number of ops:  11
compiled vars:  !0 = $w, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'w'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        ASSIGN                                                   !1, <array>
    5     5        INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->10
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.67 ms | 1394 KiB | 17 Q