3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = array(9,4,10); function standard_deviation($A){ if(is_array($A)){ $mean = array_sum($sample) / count($sample); print "print"; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i9Cfp
function name:  (null)
number of ops:  2
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1      > RETURN                                                   1

Function standard_deviation:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/i9Cfp
function name:  standard_deviation
number of ops:  11
compiled vars:  !0 = $A, !1 = $mean, !2 = $sample
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~3, ->10
    6     3    >   INIT_FCALL                                               'array_sum'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $4      
          6        COUNT                                            ~5      !2
          7        DIV                                              ~6      $4, ~5
          8        ASSIGN                                                   !1, ~6
    7     9        ECHO                                                     'print'
    9    10    > > RETURN                                                   null

End of function standard_deviation

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.35 ms | 1394 KiB | 15 Q