3v4l.org

run code in 300+ 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:  22
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        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 '%2F'
          7        SEND_VAL                                                 '-'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        DIV                                              ~5      $4, 365
         15        MUL                                              ~6      ~5, 100
         16        SEND_VAL                                                 ~6
         17        SEND_VAL                                                 0
         18        DO_ICALL                                         $7      
         19        CONCAT                                           ~8      $7, '%25'
         20        ECHO                                                     ~8
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.66 ms | 1005 KiB | 17 Q