3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($n) { echo date("j", mktime(1,1,1,1,$n%10)); echo "\n"; } f(12); f(15); f(40); f(91);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QsaCt
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 12
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'f'
          4        SEND_VAL                                                 15
          5        DO_FCALL                                      0          
   12     6        INIT_FCALL                                               'f'
          7        SEND_VAL                                                 40
          8        DO_FCALL                                      0          
   13     9        INIT_FCALL                                               'f'
         10        SEND_VAL                                                 91
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QsaCt
function name:  f
number of ops:  16
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'j'
          3        INIT_FCALL                                               'mktime'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 1
          8        MOD                                              ~1      !0, 10
          9        SEND_VAL                                                 ~1
         10        DO_ICALL                                         $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        ECHO                                                     $3
    6    14        ECHO                                                     '%0A'
    7    15      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.8 ms | 1398 KiB | 21 Q