3v4l.org

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

Function isperfect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1WtBA
function name:  isPerfect
number of ops:  10
compiled vars:  !0 = $numbers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_DIM_R                                      ~1      !0, 0
          2        FETCH_DIM_R                                      ~2      !0, 1
          3        MUL                                              ~3      ~1, ~2
          4        FETCH_DIM_R                                      ~4      !0, 2
          5        MUL                                              ~5      ~3, ~4
          6        FETCH_DIM_R                                      ~6      !0, 3
          7        MUL                                              ~7      ~5, ~6
          8      > RETURN                                                   ~7
    5     9*     > RETURN                                                   null

End of function isperfect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.94 ms | 1402 KiB | 16 Q