3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = 100 * 100000; $tri = 10000; $charaData = array('character_int' => 400); for ($i=0; $i<$tri; ++$i) $up += intval2($amount / 100000) * mt_rand_a(100000, ($charaData['character_int'] + 100) * 500 / 3) / 100000; echo $up / $tri;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/Sl3er
function name:  (null)
number of ops:  26
compiled vars:  !0 = $amount, !1 = $tri, !2 = $charaData, !3 = $i, !4 = $up
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000000
    4     1        ASSIGN                                                   !1, 10000
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->21
    8     5    >   INIT_FCALL_BY_NAME                                       'intval2'
          6        DIV                                              ~9      !0, 100000
          7        SEND_VAL_EX                                              ~9
          8        DO_FCALL                                      0  $10     
          9        INIT_FCALL_BY_NAME                                       'mt_rand_a'
         10        SEND_VAL_EX                                              100000
         11        FETCH_DIM_R                                      ~11     !2, 'character_int'
         12        ADD                                              ~12     ~11, 100
         13        MUL                                              ~13     ~12, 500
         14        DIV                                              ~14     ~13, 3
         15        SEND_VAL_EX                                              ~14
         16        DO_FCALL                                      0  $15     
         17        MUL                                              ~16     $10, $15
         18        DIV                                              ~17     ~16, 100000
         19        ASSIGN_OP                                     1          !4, ~17
    7    20        PRE_INC                                                  !3
         21    >   IS_SMALLER                                               !3, !1
         22      > JMPNZ                                                    ~20, ->5
   10    23    >   DIV                                              ~21     !4, !1
         24        ECHO                                                     ~21
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.66 ms | 1394 KiB | 13 Q