3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo time(); die; function addTen($number) { if (time() % 10 === 0) { sleep(5); } return (int) $number + 10; } addTen(20);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/5VqCd
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
          3      > EXIT                                                     
   15     4*       INIT_FCALL                                               'addten'
          5*       SEND_VAL                                                 20
          6*       DO_FCALL                                      0          
          7*     > RETURN                                                   1

Function addten:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/5VqCd
function name:  addTen
number of ops:  13
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $1      
          3        MOD                                              ~2      $1, 10
          4        IS_IDENTICAL                                             ~2, 0
          5      > JMPZ                                                     ~3, ->9
    9     6    >   INIT_FCALL                                               'sleep'
          7        SEND_VAL                                                 5
          8        DO_ICALL                                                 
   11     9    >   CAST                                          4  ~5      !0
         10        ADD                                              ~6      ~5, 10
         11      > RETURN                                                   ~6
   12    12*     > RETURN                                                   null

End of function addten

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.94 ms | 1398 KiB | 18 Q