3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.39 ms | 1394 KiB | 15 Q