3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(json_encode(new DateTime('2015-05-03'))); var_dump(json_encode(new DateTimeImmutable('2015-05-03')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ragDN
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'json_encode'
          2        NEW                                                  $0      'DateTime'
          3        SEND_VAL_EX                                                  '2015-05-03'
          4        DO_FCALL                                          0          
          5        SEND_VAR                                                     $0
          6        DO_ICALL                                             $2      
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
    5     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'json_encode'
         11        NEW                                                  $4      'DateTimeImmutable'
         12        SEND_VAL_EX                                                  '2015-05-03'
         13        DO_FCALL                                          0          
         14        SEND_VAR                                                     $4
         15        DO_ICALL                                             $6      
         16        SEND_VAR                                                     $6
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.5 ms | 2966 KiB | 15 Q