3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '1' === 1; $a = '1' == 1; echo $a; for ($d=55; $d<65; $d++) { $dt = DateTime::createFromFormat ('z.Y', $d.'.2012'); $dd = $dt->format ('d.m.Y'); echo "$d $dd\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/87c4b
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $d, !2 = $dt, !3 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    4     1        ASSIGN                                                   !0, <true>
    6     2        ECHO                                                     !0
    9     3        ASSIGN                                                   !1, 55
          4      > JMP                                                      ->21
   11     5    >   INIT_STATIC_METHOD_CALL                                  'DateTime', 'createFromFormat'
          6        SEND_VAL                                                 'z.Y'
          7        CONCAT                                           ~7      !1, '.2012'
          8        SEND_VAL                                                 ~7
          9        DO_FCALL                                      0  $8      
         10        ASSIGN                                                   !2, $8
   12    11        INIT_METHOD_CALL                                         !2, 'format'
         12        SEND_VAL_EX                                              'd.m.Y'
         13        DO_FCALL                                      0  $10     
         14        ASSIGN                                                   !3, $10
   13    15        ROPE_INIT                                     4  ~13     !1
         16        ROPE_ADD                                      1  ~13     ~13, '+'
         17        ROPE_ADD                                      2  ~13     ~13, !3
         18        ROPE_END                                      3  ~12     ~13, '%0A'
         19        ECHO                                                     ~12
    9    20        PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 65
         22      > JMPNZ                                                    ~16, ->5
   14    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.48 ms | 1385 KiB | 13 Q