3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ['reservation_start' => '12:05:00', 'reservation_end' => '12:40:00'], ['reservation_start' => '13:15:00', 'reservation_end' => '13:50:00'] ]; $reservation_start = '13:15:00'; $reservation_end = '13:50:00'; $target = ['reservation_start' => $reservation_start, 'reservation_end' => $reservation_end]; $found = in_array($target, $data); var_dump($found);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XRAAN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $reservation_start, !2 = $reservation_end, !3 = $target, !4 = $found
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, '13%3A15%3A00'
    8     2        ASSIGN                                                   !2, '13%3A50%3A00'
   10     3        INIT_ARRAY                                       ~8      !1, 'reservation_start'
          4        ADD_ARRAY_ELEMENT                                ~8      !2, 'reservation_end'
          5        ASSIGN                                                   !3, ~8
   12     6        INIT_FCALL                                               'in_array'
          7        SEND_VAR                                                 !3
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !4, $10
   14    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.19 ms | 1001 KiB | 15 Q