3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr= array( 78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76, 73, 68, 62, 73, 72, 65, 74, 62, 62, 65, 64, 68, 73, 75, 79, 73 ); $count=count($arr); $sum=0; foreach ($arr as $a) { $sum=$sum+$a; } $sum/$count; $sort = sort($arr); foreach($arr as $ar) {echo $a;}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 20
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/rFenv
function name:  (null)
number of ops:  22
compiled vars:  !0 = $arr, !1 = $count, !2 = $sum, !3 = $a, !4 = $sort, !5 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~7      !0
          2        ASSIGN                                                   !1, ~7
    4     3        ASSIGN                                                   !2, 0
    5     4      > FE_RESET_R                                       $10     !0, ->9
          5    > > FE_FETCH_R                                               $10, !3, ->9
    8     6    >   ADD                                              ~11     !2, !3
          7        ASSIGN                                                   !2, ~11
    5     8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $10
   10    10        DIV                                              ~13     !2, !1
         11        FREE                                                     ~13
   12    12        INIT_FCALL                                               'sort'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                         $14     
         15        ASSIGN                                                   !4, $14
   13    16      > FE_RESET_R                                       $16     !0, ->20
         17    > > FE_FETCH_R                                               $16, !5, ->20
   14    18    >   ECHO                                                     !3
   13    19      > JMP                                                      ->17
         20    >   FE_FREE                                                  $16
   14    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.42 ms | 1395 KiB | 15 Q