3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bitch = '/Date(1440960660000+0200)'; $epoch = 1440960660000 / 1000; $tz = 0200/100; $dt = new DateTime(); $dt->setTimestamp($epoch); var_dump($tz);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NmBdD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bitch, !1 = $epoch, !2 = $tz, !3 = $dt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2FDate%281440960660000%2B0200%29'
    4     1        ASSIGN                                                   !1, 1440960660
    5     2        ASSIGN                                                   !2, 1.28
    6     3        NEW                                              $7      'DateTime'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !3, $7
    7     6        INIT_METHOD_CALL                                         !3, 'setTimestamp'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    8     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.87 ms | 1398 KiB | 15 Q