3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2014-01-01'); echo $a->format('D j M Y')."\n".$a->format('Y').(($a->format('L'))?' is a leap year':' is not a leap year');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q3qXI
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2014-01-01'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    4     4        INIT_METHOD_CALL                                         !0, 'format'
          5        SEND_VAL_EX                                              'D+j+M+Y'
          6        DO_FCALL                                      0  $4      
          7        CONCAT                                           ~5      $4, '%0A'
          8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y'
         10        DO_FCALL                                      0  $6      
         11        CONCAT                                           ~7      ~5, $6
         12        INIT_METHOD_CALL                                         !0, 'format'
         13        SEND_VAL_EX                                              'L'
         14        DO_FCALL                                      0  $8      
         15      > JMPZ                                                     $8, ->18
         16    >   QM_ASSIGN                                        ~9      '+is+a+leap+year'
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~9      '+is+not+a+leap+year'
         19    >   CONCAT                                           ~10     ~7, ~9
         20        ECHO                                                     ~10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1394 KiB | 13 Q