3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = array(9,4,-3,-10); $mean = array_sum($A) / count($A); foreach($A as $key => $i) { $devs[$key] = pow($num - $mean, 2); print_r($devs[$key]); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/v7ApU
function name:  (null)
number of ops:  24
compiled vars:  !0 = $A, !1 = $mean, !2 = $i, !3 = $key, !4 = $devs, !5 = $num
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_sum'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $7      
          4        COUNT                                            ~8      !0
          5        DIV                                              ~9      $7, ~8
          6        ASSIGN                                                   !1, ~9
    5     7      > FE_RESET_R                                       $11     !0, ->22
          8    > > FE_FETCH_R                                       ~12     $11, !2, ->22
          9    >   ASSIGN                                                   !3, ~12
    6    10        INIT_FCALL                                               'pow'
         11        SUB                                              ~15     !5, !1
         12        SEND_VAL                                                 ~15
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $16     
         15        ASSIGN_DIM                                               !4, !3
         16        OP_DATA                                                  $16
    7    17        INIT_FCALL                                               'print_r'
         18        FETCH_DIM_R                                      ~17     !4, !3
         19        SEND_VAL                                                 ~17
         20        DO_ICALL                                                 
    5    21      > JMP                                                      ->8
         22    >   FE_FREE                                                  $11
    9    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.61 ms | 1395 KiB | 19 Q