3v4l.org

run code in 500+ PHP versions simultaneously
<?php $diff = DateInterval::createFromDateString('1 year 2 months'); print('<hr><pre>');var_dump($diff);print('</pre>');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inHU0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $diff
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                      'DateInterval', 'createFromDateString'
          1        SEND_VAL                                                     '1+year+2+months'
          2        DO_FCALL                                          0  $1      
          3        ASSIGN                                                       !0, $1
    4     4        ECHO                                                         '%3Chr%3E%3Cpre%3E'
          5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8        ECHO                                                         '%3C%2Fpre%3E'
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.34 ms | 2312 KiB | 14 Q