3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ((array) new DateTime())['timezone_type']; if ($x > 0) { var_dump('ok'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/lF95R
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        CAST                                          7  ~3      $1
          3        FETCH_DIM_R                                      ~4      ~3, 'timezone_type'
          4        ASSIGN                                                   !0, ~4
    5     5        IS_SMALLER                                               0, !0
          6      > JMPZ                                                     ~6, ->10
    6     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 'ok'
          9        DO_ICALL                                                 
    7    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.71 ms | 1431 KiB | 14 Q