3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "test@test.edu", "test@test.edu.pl", "test@test.com", "test.edu@test.com" ]; foreach ($strings as $string) { if (in_array("edu", explode(".", explode("@", $string)[1]))) { echo "$string contains .edu after @" . PHP_EOL; } else { echo "$string dot not contain .edu after @" . PHP_EOL;; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 27
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/6e9sH
function name:  (null)
number of ops:  29
compiled vars:  !0 = $strings, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $3      !0, ->27
          2    > > FE_FETCH_R                                               $3, !1, ->27
    9     3    >   INIT_FCALL                                               'in_array'
          4        SEND_VAL                                                 'edu'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '.'
          7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%40'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $4      
         11        FETCH_DIM_R                                      ~5      $4, 1
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16      > JMPZ                                                     $7, ->22
   10    17    >   NOP                                                      
         18        FAST_CONCAT                                      ~8      !1, '+contains+.edu+after+%40'
         19        CONCAT                                           ~9      ~8, '%0A'
         20        ECHO                                                     ~9
    9    21      > JMP                                                      ->26
   12    22    >   NOP                                                      
         23        FAST_CONCAT                                      ~10     !1, '+dot+not+contain+.edu+after+%40'
         24        CONCAT                                           ~11     ~10, '%0A'
         25        ECHO                                                     ~11
    8    26    > > JMP                                                      ->2
         27    >   FE_FREE                                                  $3
   14    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.78 ms | 1012 KiB | 15 Q