3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_reduce( ['1', '2', 3], function ($current, $value) { return $current || is_string($value); }, false ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTQ6L
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'array_reduce'
    3     2        SEND_VAL                                                 <array>
    4     3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkTQ6L%3A4%240'
    6     4        SEND_VAL                                                 ~0
    7     5        SEND_VAL                                                 <false>
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    8     9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkTQ6L%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/kTQ6L
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $current, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2      > JMPNZ_EX                                         ~2      !0, ->5
          3    >   TYPE_CHECK                                   64  ~3      !1
          4        BOOL                                             ~2      ~3
          5    > > RETURN                                                   ~2
    6     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkTQ6L%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164 ms | 1395 KiB | 17 Q