3v4l.org

run code in 300+ PHP versions simultaneously
<?php //строка $str = '12.07.1980 12.07 18.06.2000 18.06'; //подстрока $sub = '2.07'; $strToArray = explode(' ', $str); var_dump(in_array($sub, $strToArray));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0O6Oc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $str, !1 = $sub, !2 = $strToArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12.07.1980+12.07+18.06.2000+18.06'
    5     1        ASSIGN                                                   !1, '2.07'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'in_array'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.49 ms | 1394 KiB | 19 Q