3v4l.org

run code in 500+ PHP versions simultaneously
<?php $reflection = new ReflectionClass('\DateTime'); $mutable = $reflection->newInstanceWithoutConstructor(); $immutable = \DateTimeImmutable::createFromMutable($mutable);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg0dq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $reflection, !1 = $mutable, !2 = $immutable
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $3      'ReflectionClass'
          1        SEND_VAL_EX                                                  '%5CDateTime'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $3
    5     4        INIT_METHOD_CALL                                             !0, 'newInstanceWithoutConstructor'
          5        DO_FCALL                                          0  $6      
          6        ASSIGN                                                       !1, $6
    6     7        INIT_STATIC_METHOD_CALL                                      'DateTimeImmutable', 'createFromMutable'
          8        SEND_VAR                                                     !1
          9        DO_FCALL                                          0  $8      
         10        ASSIGN                                                       !2, $8
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.33 ms | 473 KiB | 7 Q