3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d=date("D"); $m=date("M"); $y=date("Y"); if($d==sun) echo "Have anice day"; echo $d; echo $m; echo $y; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/INnih
function name:  (null)
number of ops:  20
compiled vars:  !0 = $d, !1 = $m, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'D'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'M'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    5    12        FETCH_CONSTANT                                   ~9      'sun'
         13        IS_EQUAL                                                 !0, ~9
         14      > JMPZ                                                     ~10, ->16
    6    15    >   ECHO                                                     'Have+anice+day'
    7    16    >   ECHO                                                     !0
    8    17        ECHO                                                     !1
    9    18        ECHO                                                     !2
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.24 ms | 1386 KiB | 15 Q