3v4l.org

run code in 500+ PHP versions simultaneously
<?php $today ="30/06/2018"; echo round(date("z", strtotime(str_replace("/", "-", $today)))/365*100,0) . "%";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EG6lt
function name:  (null)
number of ops:  19
compiled vars:  !0 = $today
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '30%2F06%2F2018'
    4     1        INIT_FCALL                                                   'round'
          2        INIT_FCALL                                                   'date'
          3        SEND_VAL                                                     'z'
          4        INIT_FCALL                                                   'strtotime'
          5        FRAMELESS_ICALL_3                str_replace         ~2      '%2F', '-'
          6        OP_DATA                                                      !0
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                             $3      
          9        SEND_VAR                                                     $3
         10        DO_ICALL                                             $4      
         11        DIV                                                  ~5      $4, 365
         12        MUL                                                  ~6      ~5, 100
         13        SEND_VAL                                                     ~6
         14        SEND_VAL                                                     0
         15        DO_ICALL                                             $7      
         16        CONCAT                                               ~8      $7, '%25'
         17        ECHO                                                         ~8
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.74 ms | 2580 KiB | 16 Q