3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => '2019-05-27', 1 => '2019-05-28', 2 => '2019-05-29', 3 => '2019-05-30', 4 => '2019-05-31', 5 => '2019-06-01' ); $key = array_search('2019-05-30',$array); //echo $key; $array = array($array[$key]); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GftvF
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'array_search'
          2        SEND_VAL                                                 '2019-05-30'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   15     6        FETCH_DIM_R                                      ~5      !0, !1
          7        INIT_ARRAY                                       ~6      ~5
          8        ASSIGN                                                   !0, ~6
   17     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
278.32 ms | 1004 KiB | 15 Q