3v4l.org

run code in 300+ PHP versions simultaneously
<?php DateTime::setTimezone(new DateTimeZone('Australia/Perth')); $d=new \DateTime(); var_dump(json_encode($d));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9qib2
function name:  (null)
number of ops:  16
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'setTimezone'
          1        NEW                                              $1      'DateTimeZone'
          2        SEND_VAL_EX                                              'Australia%2FPerth'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_FCALL                                      0          
    4     6        NEW                                              $4      'DateTime'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $4
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.19 ms | 1385 KiB | 17 Q