3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "John do you know a lie"; $after = explode(" ", explode("do you ", $text)[1])[0]; echo $after; if(strlen($after) >=3 && is_string($after) && strtolower($after) != "lie"){ echo "true"; }else{ echo "false"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 18
filename:       /in/tJ754
function name:  (null)
number of ops:  29
compiled vars:  !0 = $text, !1 = $after
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'John+do+you+know+a+lie'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 'do+you+'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        FETCH_DIM_R                                      ~4      $3, 1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        FETCH_DIM_R                                      ~6      $5, 0
         11        ASSIGN                                                   !1, ~6
    5    12        ECHO                                                     !1
    7    13        STRLEN                                           ~8      !1
         14        IS_SMALLER_OR_EQUAL                              ~9      3, ~8
         15      > JMPZ_EX                                          ~9      ~9, ->18
         16    >   TYPE_CHECK                                   64  ~10     !1
         17        BOOL                                             ~9      ~10
         18    > > JMPZ_EX                                          ~9      ~9, ->24
         19    >   INIT_FCALL                                               'strtolower'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $11     
         22        IS_NOT_EQUAL                                     ~12     $11, 'lie'
         23        BOOL                                             ~9      ~12
         24    > > JMPZ                                                     ~9, ->27
    8    25    >   ECHO                                                     'true'
    7    26      > JMP                                                      ->28
   10    27    >   ECHO                                                     'false'
   11    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
280.49 ms | 1012 KiB | 15 Q