3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getAmount() { $increment = 19000; return getTodayValue($increment); } function getUsers() { $increment = 514; return getTodayValue($increment); } function getTodayValue($inc) { $startDay = "2013-11-01"; $endDay = "2013-12-31"; $now = date('Y-m-d'); $endDay = ($now <= $endDay) ? $now : $endDay; $diff = abs(strtotime($endDay) - strtotime($startDay)); echo($diff); } getAmount();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKNM1
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_FCALL                                               'getamount'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function getamount:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKNM1
function name:  getAmount
number of ops:  6
compiled vars:  !0 = $increment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 19000
    6     1        INIT_FCALL_BY_NAME                                       'getTodayValue'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4      > RETURN                                                   $2
    7     5*     > RETURN                                                   null

End of function getamount

Function getusers:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKNM1
function name:  getUsers
number of ops:  6
compiled vars:  !0 = $increment
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 514
   12     1        INIT_FCALL_BY_NAME                                       'getTodayValue'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $2      
          4      > RETURN                                                   $2
   13     5*     > RETURN                                                   null

End of function getusers

Function gettodayvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKNM1
function name:  getTodayValue
number of ops:  26
compiled vars:  !0 = $inc, !1 = $startDay, !2 = $endDay, !3 = $now, !4 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        ASSIGN                                                   !1, '2013-11-01'
   17     2        ASSIGN                                                   !2, '2013-12-31'
   18     3        INIT_FCALL                                               'date'
          4        SEND_VAL                                                 'Y-m-d'
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !3, $7
   20     7        IS_SMALLER_OR_EQUAL                                      !3, !2
          8      > JMPZ                                                     ~9, ->11
          9    >   QM_ASSIGN                                        ~10     !3
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~10     !2
         12    >   ASSIGN                                                   !2, ~10
   22    13        INIT_FCALL                                               'abs'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $12     
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $13     
         20        SUB                                              ~14     $12, $13
         21        SEND_VAL                                                 ~14
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !4, $15
   23    24        ECHO                                                     !4
   24    25      > RETURN                                                   null

End of function gettodayvalue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.82 ms | 1403 KiB | 20 Q