3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = date_sunset($_SERVER['REQUEST_TIME'], SUNFUNCS_RET_STRING, 36.23, 139.04, 90.6, 9); $str = preg_replace_callback('/\d|(:)/', function($m) { return vsprintf( '<img src="%s.gif" alt="%s" />', isset($m[1]) ? array('colon', ':') : array($m[0], $m[0]) ); }, $str); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7t4nS
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_sunset'
          1        FETCH_R                      global              ~1      '_SERVER'
          2        FETCH_DIM_R                                      ~2      ~1, 'REQUEST_TIME'
          3        SEND_VAL                                                 ~2
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 36.23
          6        SEND_VAL                                                 139.04
          7        SEND_VAL                                                 90.6
          8        SEND_VAL                                                 9
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    4    11        INIT_FCALL                                               'preg_replace_callback'
         12        SEND_VAL                                                 '%2F%5Cd%7C%28%3A%29%2F'
         13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F7t4nS%3A4%240'
    9    14        SEND_VAL                                                 ~5
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
    4    17        ASSIGN                                                   !0, $6
   11    18        ECHO                                                     !0
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F7t4nS%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7t4nS
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'vsprintf'
    6     2        SEND_VAL                                                 '%3Cimg+src%3D%22%25s.gif%22+alt%3D%22%25s%22+%2F%3E'
    7     3        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 1
          4      > JMPZ                                                     ~1, ->7
          5    >   QM_ASSIGN                                        ~2      <array>
          6      > JMP                                                      ->12
          7    >   FETCH_DIM_R                                      ~3      !0, 0
          8        INIT_ARRAY                                       ~4      ~3
          9        FETCH_DIM_R                                      ~5      !0, 0
         10        ADD_ARRAY_ELEMENT                                ~4      ~5
         11        QM_ASSIGN                                        ~2      ~4
         12    >   SEND_VAL                                                 ~2
         13        DO_ICALL                                         $6      
         14      > RETURN                                                   $6
    9    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F7t4nS%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.08 ms | 1405 KiB | 19 Q