3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('m'); echo substr(date('m'),1); echo substr(date('m'),-1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9sCMs
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    3     4        INIT_FCALL                                               'substr'
          5        INIT_FCALL                                               'date'
          6        SEND_VAL                                                 'm'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
    4    12        INIT_FCALL                                               'substr'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'm'
         15        DO_ICALL                                         $3      
         16        SEND_VAR                                                 $3
         17        SEND_VAL                                                 -1
         18        DO_ICALL                                         $4      
         19        ECHO                                                     $4
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.86 ms | 1395 KiB | 17 Q