3v4l.org

run code in 500+ PHP versions simultaneously
<?php if (!function_exists('array_all')) { function array_all(array $array, callable $callable) { foreach ($array as $key => $value) { if (! $callable($value, $key)) return false; } return true; } } var_dump(array_all([1, 2, 3], 'is_int'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/2DQ9a
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'function_exists'
          1        SEND_VAL                                                     'array_all'
          2        DO_ICALL                                             $0      
          3        BOOL_NOT                                             ~1      $0
          4      > JMPZ                                                         ~1, ->6
    4     5    >   DECLARE_FUNCTION                                             'array_all'
   13     6    >   INIT_FCALL                                                   'var_dump'
          7        INIT_FCALL                                                   'array_all'
          8        SEND_VAL                                                     <array>
          9        SEND_VAL                                                     'is_int'
         10        DO_ICALL                                             $2      
         11        SEND_VAR                                                     $2
         12        DO_ICALL                                                     
         13      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/2DQ9a
function name:  array_all
number of ops:  17
compiled vars:  !0 = $array, !1 = $callable, !2 = $value, !3 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    5     2      > FE_RESET_R                                           $4      !0, ->14
          3    > > FE_FETCH_R                                           ~5      $4, !2, ->14
          4    >   ASSIGN                                                       !3, ~5
    6     5        INIT_DYNAMIC_CALL                                            !1
          6        SEND_VAR_EX                                                  !2
          7        SEND_VAR_EX                                                  !3
          8        DO_FCALL                                          0  $7      
          9        BOOL_NOT                                             ~8      $7
         10      > JMPZ                                                         ~8, ->13
    7    11    >   FE_FREE                                                      $4
         12      > RETURN                                                       <false>
    5    13    > > JMP                                                          ->3
         14    >   FE_FREE                                                      $4
    9    15      > RETURN                                                       <true>
   10    16*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.42 ms | 3437 KiB | 16 Q