3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rev11__kHz_to_us($kHz) { $kHz_real = $kHz * 1E3; $seconds = (1 / $kHz_real); $us = $seconds * 1E6; return $us; } function rev11__us_to_kHz($us) { $us_real = ($us * 1E-6); $freq = (1 / $us_real); $freq_kHz = $freq / 1E3; return $freq_kHz; } var_dump(rev11__kHz_to_us(20));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o8Pbl
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'rev11__khz_to_us'
          2        SEND_VAL                                                 20
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function rev11__khz_to_us:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o8Pbl
function name:  rev11__kHz_to_us
number of ops:  9
compiled vars:  !0 = $kHz, !1 = $kHz_real, !2 = $seconds, !3 = $us
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        MUL                                              ~4      !0, 1000
          2        ASSIGN                                                   !1, ~4
    6     3        DIV                                              ~6      1, !1
          4        ASSIGN                                                   !2, ~6
    8     5        MUL                                              ~8      !2, 1.0e+6
          6        ASSIGN                                                   !3, ~8
   10     7      > RETURN                                                   !3
   11     8*     > RETURN                                                   null

End of function rev11__khz_to_us

Function rev11__us_to_khz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o8Pbl
function name:  rev11__us_to_kHz
number of ops:  9
compiled vars:  !0 = $us, !1 = $us_real, !2 = $freq, !3 = $freq_kHz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        MUL                                              ~4      !0, 1.0e-6
          2        ASSIGN                                                   !1, ~4
   15     3        DIV                                              ~6      1, !1
          4        ASSIGN                                                   !2, ~6
   16     5        DIV                                              ~8      !2, 1000
          6        ASSIGN                                                   !3, ~8
   18     7      > RETURN                                                   !3
   19     8*     > RETURN                                                   null

End of function rev11__us_to_khz

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.04 ms | 1390 KiB | 16 Q