3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_numbers(){ return array_reduce(func_get_args(), function($result, $arg){ $result &= is_numeric($arg); }, false); } var_dump(is_numbers(1,2,3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XcIhm
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_numbers'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 2
          4        SEND_VAL                                                 3
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function is_numbers:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XcIhm
function name:  is_numbers
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'array_reduce'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXcIhm%3A4%240'
    6     4        SEND_VAL                                                 ~1
          5        SEND_VAL                                                 <false>
          6        DO_ICALL                                         $2      
          7      > RETURN                                                   $2
    7     8*     > RETURN                                                   null

End of function is_numbers

Function %00%7Bclosure%7D%2Fin%2FXcIhm%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XcIhm
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $result, !1 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'is_numeric'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN_OP                                    10          !0, $2
    6     6      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.3 ms | 1390 KiB | 20 Q