3v4l.org

run code in 300+ PHP versions simultaneously
<?php $personas = [ 'Hermann' => [ 'status' => '0', 'gender' => 'maskulin' ], 'Lida' => [ 'status' => '1', 'gender' => 'feminin' ], 'Susi' => [ 'status' => '0', 'gender' => 'feminin' ], 'Mara' => [ 'status' => '0', 'gender' => 'feminin' ] ]; while ($status = current($personas)) { if ($status['status'] == '0') { $result[] = key($personas); } next($personas); } echo 'Personas with status 0: '.join(', ',$result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
Branch analysis from position: 10
filename:       /in/qjgPC
function name:  (null)
number of ops:  25
compiled vars:  !0 = $personas, !1 = $status, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1      > JMP                                                      ->13
   22     2    >   FETCH_DIM_R                                      ~4      !1, 'status'
          3        IS_EQUAL                                                 ~4, '0'
          4      > JMPZ                                                     ~5, ->10
   23     5    >   INIT_FCALL                                               'key'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN_DIM                                               !2
          9        OP_DATA                                                  $7
   25    10    >   INIT_FCALL                                               'next'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
   21    13    >   INIT_FCALL                                               'current'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        ASSIGN                                           ~10     !1, $9
         17      > JMPNZ                                                    ~10, ->2
   27    18    >   INIT_FCALL                                               'join'
         19        SEND_VAL                                                 '%2C+'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $11     
         22        CONCAT                                           ~12     'Personas+with+status+0%3A+', $11
         23        ECHO                                                     ~12
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.37 ms | 1008 KiB | 17 Q