3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (version_compare(PHP_VERSION, '5.3.0') >= 0) { $d = new \DateTime(); } else { $d = new DateTime(); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ULDQi
function name:  (null)
number of ops:  14
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '5.3.0'
          3        DO_ICALL                                         $1      
          4        IS_SMALLER_OR_EQUAL                                      0, $1
          5      > JMPZ                                                     ~2, ->10
    6     6    >   NEW                                              $3      'DateTime'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $3
          9      > JMP                                                      ->13
   11    10    >   NEW                                              $6      'DateTime'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $6
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.95 ms | 1394 KiB | 15 Q