3v4l.org

run code in 300+ PHP versions simultaneously
<?php //following GMT value or offset get from api $offsetHours = '-5 hours'; // This time i get from api $currentValue = '1401705628'; $actualTimeStamp = strtotime($offsetHours,$currentValue); echo strtotime($offsetHours)."==="; echo $actualTimeStamp."==="; echo date('d-M-Y h:i A',$actualTimeStamp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hpG3l
function name:  (null)
number of ops:  20
compiled vars:  !0 = $offsetHours, !1 = $currentValue, !2 = $actualTimeStamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '-5+hours'
    6     1        ASSIGN                                                   !1, '1401705628'
    7     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    8     7        INIT_FCALL                                               'strtotime'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        CONCAT                                           ~8      $7, '%3D%3D%3D'
         11        ECHO                                                     ~8
    9    12        CONCAT                                           ~9      !2, '%3D%3D%3D'
         13        ECHO                                                     ~9
   10    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'd-M-Y+h%3Ai+A'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        ECHO                                                     $10
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.7 ms | 1395 KiB | 17 Q