3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts = (new DateTime)->format('U'); var_dump(is_float($tmp = $ts * 1) ? $ts : $tmp);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I2r6o
function name:  (null)
number of ops:  17
compiled vars:  !0 = $ts, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $2, 'format'
          3        SEND_VAL_EX                                              'U'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
    4     6        INIT_FCALL                                               'var_dump'
          7        MUL                                              ~6      !0, 1
          8        ASSIGN                                           ~7      !1, ~6
          9        TYPE_CHECK                                   32          ~7
         10      > JMPZ                                                     ~8, ->13
         11    >   QM_ASSIGN                                        ~9      !0
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~9      !1
         14    >   SEND_VAL                                                 ~9
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.95 ms | 1394 KiB | 15 Q