3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime("2014-04-07 15:30:00"); $diff = $now->diff(new DateTime()); $diff->format("m");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NgDK1
function name:  (null)
number of ops:  14
compiled vars:  !0 = $now, !1 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2014-04-07+15%3A30%3A00'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        INIT_METHOD_CALL                                         !0, 'diff'
          5        NEW                                              $5      'DateTime'
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0  $7      
          9        ASSIGN                                                   !1, $7
    6    10        INIT_METHOD_CALL                                         !1, 'format'
         11        SEND_VAL_EX                                              'm'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.63 ms | 1393 KiB | 13 Q