3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 1000; $i++) { list($s1, $s2) = explode(' ', microtime()); date('YmdHis').(float)sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 2
Branch analysis from position: 30
Branch analysis from position: 2
filename:       /in/V4A9S
function name:  (null)
number of ops:  31
compiled vars:  !0 = $i, !1 = $s1, !2 = $s2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->28
    4     2    >   INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        INIT_FCALL                                               'microtime'
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        FETCH_LIST_R                                     $6      $5, 0
          9        ASSIGN                                                   !1, $6
         10        FETCH_LIST_R                                     $8      $5, 1
         11        ASSIGN                                                   !2, $8
         12        FREE                                                     $5
    5    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'YmdHis'
         15        DO_ICALL                                         $10     
         16        INIT_FCALL                                               'sprintf'
         17        SEND_VAL                                                 '%25.0f'
         18        CAST                                          5  ~11     !1
         19        CAST                                          5  ~12     !2
         20        ADD                                              ~13     ~11, ~12
         21        MUL                                              ~14     ~13, 1000
         22        SEND_VAL                                                 ~14
         23        DO_ICALL                                         $15     
         24        CAST                                          5  ~16     $15
         25        CONCAT                                           ~17     $10, ~16
         26        FREE                                                     ~17
    3    27        PRE_INC                                                  !0
         28    >   IS_SMALLER                                               !0, 1000
         29      > JMPNZ                                                    ~19, ->2
    6    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.31 ms | 1396 KiB | 21 Q