3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GetMonthFromMySQLString($mysql_datetime) { return date('m', strtotime($mysql_datetime)); } echo GetMonthFromMySQLString("2011-11-26 18:29:09");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tReN2
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'getmonthfrommysqlstring'
          1        SEND_VAL                                                 '2011-11-26+18%3A29%3A09'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function getmonthfrommysqlstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tReN2
function name:  GetMonthFromMySQLString
number of ops:  10
compiled vars:  !0 = $mysql_datetime
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'm'
          3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8      > RETURN                                                   $2
   12     9*     > RETURN                                                   null

End of function getmonthfrommysqlstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 1397 KiB | 18 Q