3v4l.org

run code in 500+ PHP versions simultaneously
<?php $liste = [ ['name' => 'Elsa', 'job' => 'Student', 'springbreak' => 'true' ], ['name' => 'Chris', 'job' => 'Teacher', 'springbreak' => 'true' ], ['name' => 'Zob', 'job' => 'Student', 'springbreak' => 'false' ], ['name' => 'Ken', 'job' => 'Teacher', 'springbreak' => 'true' ], ['name' => 'Ryan', 'job' => 'Student', 'springbreak' => 'false' ], ['name' => 'Tenta', 'job' => 'Teacher', 'springbreak' => 'true' ] ]; $names = []; foreach($liste as $list){ if($list['springbreak']=='true'){ $names[] = $list['name']; } } echo implode(',',$names); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/B7Bo6
function name:  (null)
number of ops:  15
compiled vars:  !0 = $liste, !1 = $names, !2 = $list
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   10     1        ASSIGN                                                       !1, <array>
   11     2      > FE_RESET_R                                           $5      !0, ->11
          3    > > FE_FETCH_R                                                   $5, !2, ->11
   12     4    >   FETCH_DIM_R                                          ~6      !2, 'springbreak'
          5        IS_EQUAL                                                     ~6, 'true'
          6      > JMPZ                                                         ~7, ->10
   13     7    >   FETCH_DIM_R                                          ~9      !2, 'name'
          8        ASSIGN_DIM                                                   !1
          9        OP_DATA                                                      ~9
   11    10    > > JMP                                                          ->3
         11    >   FE_FREE                                                      $5
   16    12        FRAMELESS_ICALL_2                implode             ~10     '%2C', !1
         13        ECHO                                                         ~10
   17    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.37 ms | 2074 KiB | 13 Q