3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(new DateTime('@1419237113')); echo json_decode('{"date":"2014-12-22 08:31:53.000000","timezone_type":1,"timezone":"+00:00"}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTLcd
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        NEW                                              $0      'DateTime'
          2        SEND_VAL_EX                                              '%401419237113'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAL                                                 '%7B%22date%22%3A%222014-12-22+08%3A31%3A53.000000%22%2C%22timezone_type%22%3A1%2C%22timezone%22%3A%22%2B00%3A00%22%7D'
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.84 ms | 1398 KiB | 17 Q