3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = date_create_immutable('2016-07-18'); $generated = eval('return '.var_export($date, true).';'); var_dump($generated == $date);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oDlic
function name:  (null)
number of ops:  17
compiled vars:  !0 = $date, !1 = $generated
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'date_create_immutable'
          1        SEND_VAL                                                     '2016-07-18'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     <true>
          7        DO_ICALL                                             $4      
          8        CONCAT                                               ~5      'return+', $4
          9        CONCAT                                               ~6      ~5, '%3B'
         10        INCLUDE_OR_EVAL                                      $7      ~6, EVAL
         11        ASSIGN                                                       !1, $7
    6    12        INIT_FCALL                                                   'var_dump'
         13        IS_EQUAL                                             ~9      !1, !0
         14        SEND_VAL                                                     ~9
         15        DO_ICALL                                                     
         16      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
227.89 ms | 2434 KiB | 16 Q