3v4l.org

run code in 300+ PHP versions simultaneously
<?php function phpDateToMySQL($day) { if((int) $day === 7) { $day = 0 ;} return $day; } phpDateToMySQL(5); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n4KmL
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'phpdatetomysql'
          1        SEND_VAL                                                 5
          2        DO_FCALL                                      0          
   12     3      > RETURN                                                   1

Function phpdatetomysql:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/n4KmL
function name:  phpDateToMySQL
number of ops:  7
compiled vars:  !0 = $day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        CAST                                          4  ~1      !0
          2        IS_IDENTICAL                                             ~1, 7
          3      > JMPZ                                                     ~2, ->5
          4    >   ASSIGN                                                   !0, 0
    6     5    > > RETURN                                                   !0
    7     6*     > RETURN                                                   null

End of function phpdatetomysql

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.83 ms | 1397 KiB | 14 Q