3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $geboortedatum = new DateTime('1991-07-21'); $vandaag = new DateTime('now'); $verschil = $geboortedatum->diff($vandaag); echo $verschil->format('%Y jaar'); ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/3hDS0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $geboortedatum, !1 = $vandaag, !2 = $verschil
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NEW                                              $3      :-6
         1        SEND_VAL_EX                                              '1991-07-21'
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
   3     4        NEW                                              $6      :-3
         5        SEND_VAL_EX                                              'now'
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !1, $6
   4     8        INIT_METHOD_CALL                                         !0, 'diff'
         9        SEND_VAR_EX                                              !1
        10        DO_FCALL                                      0  $9      
        11        ASSIGN                                                   !2, $9
   5    12        INIT_METHOD_CALL                                         !2, 'format'
        13        SEND_VAL_EX                                              '%25Y+jaar'
        14        DO_FCALL                                      0  $11     
        15        ECHO                                                     $11
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0