3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2015-12-2'); $b = new DateTime('2015-2-2'); echo $a->format('Y-m-d'); echo $a < $b ? 'ja' : 'nein';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KThQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'DateTime'
          1        SEND_VAL_EX                                              '2015-12-2'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $5      'DateTime'
          5        SEND_VAL_EX                                              '2015-2-2'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    6     8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y-m-d'
         10        DO_FCALL                                      0  $8      
         11        ECHO                                                     $8
    8    12        IS_SMALLER                                               !0, !1
         13      > JMPZ                                                     ~9, ->16
         14    >   QM_ASSIGN                                        ~10     'ja'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~10     'nein'
         17    >   ECHO                                                     ~10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.63 ms | 1385 KiB | 13 Q