3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['first_name' => 'Jon', 'last_name' => 'Parsons', 'title' => 'Engineer'], ['first_name' => 'Steve', 'last_name' => 'Conine', 'title' => 'executive'], ['first_name' => 'Joe', 'last_name' => 'Cool', 'title' => 'dumbass'], ['first_name' => 'Niraj', 'last_name' => 'Shaw', 'title' => 'Executive'], ['first_name' => 'Scott', 'last_name' => 'Kaye', 'title' => 'engineer']]; foreach ($array as $a) { if (strtolower($a['position']) === 'executive') { echo $a['first_name'] . ' ' . $a['last_name']; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/OgViD
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_R                                       $3      !0, ->15
          2    > > FE_FETCH_R                                               $3, !1, ->15
   11     3    >   INIT_FCALL                                               'strtolower'
          4        FETCH_DIM_R                                      ~4      !1, 'position'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        IS_IDENTICAL                                             $5, 'executive'
          8      > JMPZ                                                     ~6, ->14
   12     9    >   FETCH_DIM_R                                      ~7      !1, 'first_name'
         10        CONCAT                                           ~8      ~7, '+'
         11        FETCH_DIM_R                                      ~9      !1, 'last_name'
         12        CONCAT                                           ~10     ~8, ~9
         13        ECHO                                                     ~10
   10    14    > > JMP                                                      ->2
         15    >   FE_FREE                                                  $3
   14    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1395 KiB | 15 Q