3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.83 ms | 1399 KiB | 19 Q